Skip to content

CI: skip duplicate jobs across branches, don't run on tag pushes #67

CI: skip duplicate jobs across branches, don't run on tag pushes

CI: skip duplicate jobs across branches, don't run on tag pushes #67

Workflow file for this run

name: Test
on:
push:
branches:
- '**'
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
pre_job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
concurrent_skipping: 'same_content_newer'
do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
test:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
name: ${{ matrix.version == '1' && 'stable' || matrix.version }} - ${{ github.event_name }}
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
version: ['lts', '1', 'nightly']
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
with:
prefix: xvfb-run