重構程式碼並減少功能 #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- "main" | |
name: Checks | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run checks | |
run: | | |
touch ./scripts/nix/is-checks-ci | |
nix develop path:$(pwd) -c rustup install stable | |
nix develop path:$(pwd) -c bash -c 'cd scripts && bash src/main.sh check' |