diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-22 16:59:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-22 17:32:58 +0900 |
| commit | 7286ee29637dbc694f769b618259eb9f75bab0fa (patch) | |
| tree | 8ab8644344614bc8feda6b2f0152030c4a9cba98 /.github/workflows | |
| parent | 94507ec2f265ca9400d64d42036ca1e8722e27da (diff) | |
| download | php-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.tar.gz php-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.tar.zst php-shirabe-7286ee29637dbc694f769b618259eb9f75bab0fa.zip | |
ci: setup GitHub Actions
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..27f545a5 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,39 @@ +name: Test + +on: + push: + branches: [main] + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - run: nix fmt -- --ci + + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + + - uses: cachix/install-nix-action@v25 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: cargo-${{ hashFiles('rust-toolchain.toml', 'Cargo.lock') }}-${{ github.sha }} + restore-keys: cargo-${{ hashFiles('rust-toolchain.toml', 'Cargo.lock') }}- + + - run: nix develop --command just check |
