diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f70b68b..cc7bd90 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,7 +1,9 @@ name: CI on: - - push - - pull_request + push: + branches: + - master + pull_request: defaults: run: shell: bash @@ -10,27 +12,27 @@ jobs: name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} runs-on: ${{ matrix.os }} strategy: - fail-fast: true matrix: version: - '1.0' - - '1.3' - - '1.5' - '1.6' - - '1.7' + - '1.10' - '1' - - 'nightly' os: - ubuntu-latest - macOS-latest - windows-latest - arch: - - x64 + exclude: + - os: macOS-latest # Apple Silicon + version: '1.0' + - os: macOS-latest # Apple Silicon + version: '1.6' steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: julia-actions/julia-buildpkg@latest - - uses: julia-actions/julia-runtest@latest + arch: 'default' + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 diff --git a/.github/workflows/Downstream.yml b/.github/workflows/Downstream.yml index 805c696..f68c3c9 100644 --- a/.github/workflows/Downstream.yml +++ b/.github/workflows/Downstream.yml @@ -1,22 +1,24 @@ name: IntegrationTest on: push: + branches: + - master pull_request: jobs: test: - name: ${{ matrix.package.repo }}/${{ matrix.julia-version }} + name: ${{ matrix.package }}/${{ matrix.julia-version }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - julia-version: [1.6, 1, nightly] + julia-version: ['1.6', '1.10', '1'] os: [ubuntu-latest] package: - - {repo: JuliaObjects/Accessors.jl} - - {repo: JuliaFolds/BangBang.jl} - - {repo: jw3126/Setfield.jl} - - {repo: rafaqz/Flatten.jl} + - Accessors + - BangBang + - Setfield + - Flatten steps: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 @@ -24,20 +26,17 @@ jobs: version: ${{ matrix.julia-version }} arch: x64 - uses: julia-actions/julia-buildpkg@latest - - name: Clone Downstream - uses: actions/checkout@v2 - with: - repository: ${{ matrix.package.repo }} - path: downstream - - name: Load this and run the downstream tests - shell: julia --color=yes --project=downstream {0} + - name: Install downstream and run its tests + shell: julia --color=yes {0} run: | using Pkg try + Pkg.activate("downstream") # force it to use this PR's version of the package Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps + Pkg.add("${{ matrix.package }}") Pkg.update() - Pkg.test(coverage=true) # resolver may fail with test time deps + Pkg.test("${{ matrix.package }}", coverage=true) # resolver may fail with test time deps catch err err isa Pkg.Resolve.ResolverError || rethrow() # If we can't resolve that means this is incompatible by SemVer and this is fine diff --git a/.github/workflows/RunTestsNoIncrementalPrecompile.yml b/.github/workflows/RunTestsNoIncrementalPrecompile.yml index 3f831d8..1b1341d 100644 --- a/.github/workflows/RunTestsNoIncrementalPrecompile.yml +++ b/.github/workflows/RunTestsNoIncrementalPrecompile.yml @@ -1,6 +1,8 @@ -name: CI +name: NoCompModules on: - - push + push: + branches: + - master - pull_request defaults: run: