From 1da6847c869cd68e3a32b8f52fe8f005b8cd5ece Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Wed, 9 Oct 2024 02:25:03 -0400 Subject: [PATCH] CI: Add the `tagcheck` job, which just makes sure that the latest tagged release of this action is able to run without error (#103) * CI: Add the `tagcheck` job, which just makes sure that the latest tagged release of this action is able to run without error * Fix a mistake * Add a comment to clarify --- .github/workflows/tagcheck.yml | 68 ++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/tagcheck.yml diff --git a/.github/workflows/tagcheck.yml b/.github/workflows/tagcheck.yml new file mode 100644 index 0000000..702ae7c --- /dev/null +++ b/.github/workflows/tagcheck.yml @@ -0,0 +1,68 @@ +name: tagcheck +# This CI file just checks that the latest tagged release of this +# action (julia-actions/install-juliaup) runs without error. +# +# This CI file does NOT test the code that is on the currently +# checked-out branch. It only runs the code in the latest tagged +# release of this repo. +on: + pull_request: + push: + branches: + - main + tags: '*' + # merge_group: # GitHub merge queue +concurrency: + # Skip intermediate builds: all builds except for builds on the `main` branch + # Cancel intermediate builds: only pull request builds + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/main' || github.run_number }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} +permissions: + contents: read +jobs: + tagcheck-hash: + timeout-minutes: 10 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + steps: + # We use Dependabot to automatically update the following line: + - uses: julia-actions/install-juliaup@8fcbfb2c711ea4be133dc43d251b5f862c9016eb # v2.2.0 + with: + channel: '1' + - run: julia --version + - run: julia -e 'import InteractiveUtils; InteractiveUtils.versioninfo()' + tagcheck-version: + timeout-minutes: 10 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + steps: + # We use Dependabot to automatically update the following line: + - uses: julia-actions/install-juliaup@v2.2.0 + with: + channel: '1' + - run: julia --version + - run: julia -e 'import InteractiveUtils; InteractiveUtils.versioninfo()' + tagcheck-convenience: + timeout-minutes: 10 + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + steps: + # Note: if/when we release v3 of this action, + # change the following line from v2 to v3: + - uses: julia-actions/install-juliaup@v2 + with: + channel: '1' + - run: julia --version + - run: julia -e 'import InteractiveUtils; InteractiveUtils.versioninfo()'