Skip to content

Commit

Permalink
Merge the test and release jobs
Browse files Browse the repository at this point in the history
Running the tests _before_ the release job results in the tests running
against the previous version, not the one we're releasing.
  • Loading branch information
yorickpeterse committed Feb 5, 2024
1 parent c91e5c9 commit 939ac2a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 37 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ on:
required: true

jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/inko-lang/aur:main
steps:
- uses: actions/checkout@v4
- name: Updating permissions
run: setfacl -R -m u:build:rwx .
- name: Running tests
run: bash scripts/test.sh "${{ inputs.name }}"
release:
needs:
- test
Expand Down
27 changes: 0 additions & 27 deletions scripts/test.sh

This file was deleted.

12 changes: 12 additions & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@ else
makepkg --printsrcinfo > .SRCINFO
fi

info 'Running test build'

if [[ -v CI ]]
then
sudo -u build makepkg --cleanbuild --force --noconfirm --clean --syncdeps \
--noconfirm --noprogressbar
else
makepkg --cleanbuild --force --noconfirm --clean --syncdeps --noconfirm \
--noprogressbar
fi

rm *.tar.gz
rm *.zst

info 'Pushing changes'
git add PKGBUILD .SRCINFO
Expand Down

0 comments on commit 939ac2a

Please sign in to comment.