2023-04-28 20:50:02 +03:00
|
|
|
name: Future proof tests
|
|
|
|
on:
|
|
|
|
schedule:
|
2023-06-24 05:59:42 +03:00
|
|
|
- cron: '23 1 * * 0' # Sun *-*-* 01:23:00 UTC
|
2023-04-28 20:50:02 +03:00
|
|
|
|
|
|
|
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
|
2023-06-21 05:37:21 +03:00
|
|
|
uses: cachix/install-nix-action@v22
|
2023-04-28 20:50:02 +03:00
|
|
|
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
|