mirror of
https://github.com/oxalica/nil.git
synced 2024-08-16 22:20:31 +03:00
Split out future-proof tests from CI
This commit is contained in:
parent
2710d6a568
commit
5bcbc93095
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
@ -2,8 +2,6 @@ name: CI
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
schedule:
|
||||
- cron: '23 1 * * *' # *-*-* 01:23:00 UTC
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@ -64,7 +62,6 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
deps: [latest, locked]
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
@ -74,13 +71,6 @@ jobs:
|
||||
uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Flake update
|
||||
if: matrix.deps == 'latest'
|
||||
# https://github.com/actions/checkout/tree/v3.3.0#push-a-commit-using-the-built-in-token
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
nix flake update --commit-lock-file
|
||||
- name: Flake check
|
||||
run: nix flake check --no-update-lock-file --show-trace
|
||||
- name: Flake build
|
||||
@ -106,17 +96,3 @@ jobs:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Nix build
|
||||
run: nix-build --show-trace
|
||||
|
||||
outdated:
|
||||
name: Outdated
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name != 'pull_request'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install cargo-outdated
|
||||
uses: dtolnay/install@cargo-outdated
|
||||
- name: cargo-outdated
|
||||
run: |
|
||||
rm Cargo.lock # Ignore trivially updatable compatible versions.
|
||||
cargo outdated --workspace --exit-code 1
|
||||
|
53
.github/workflows/future-proof.yaml
vendored
Normal file
53
.github/workflows/future-proof.yaml
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
name: Future proof tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'ci'
|
||||
schedule:
|
||||
- cron: '23 1 * * *' # *-*-* 01:23:00 UTC
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
RUST_BACKTRACE: full
|
||||
|
||||
jobs:
|
||||
nix-flake-latest:
|
||||
name: Flake package following latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v20
|
||||
with:
|
||||
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Flake update
|
||||
# https://github.com/actions/checkout/tree/v3.3.0#push-a-commit-using-the-built-in-token
|
||||
run: |
|
||||
git config user.name github-actions
|
||||
git config user.email github-actions@github.com
|
||||
nix flake update --commit-lock-file
|
||||
- name: Flake check
|
||||
run: nix flake check --no-update-lock-file --show-trace
|
||||
- name: Flake build
|
||||
run: nix build --no-update-lock-file --show-trace --print-build-logs
|
||||
|
||||
outdated:
|
||||
name: Outdated
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install cargo-outdated
|
||||
uses: dtolnay/install@cargo-outdated
|
||||
- name: cargo-outdated
|
||||
run: |
|
||||
rm Cargo.lock # Ignore trivially updatable compatible versions.
|
||||
cargo outdated --workspace --exit-code 1
|
Loading…
Reference in New Issue
Block a user