|
1 | | -name: CI |
2 | | -on: |
3 | | - pull_request: |
4 | | - branches: [main] |
5 | | - push: |
6 | | - branches: [main] |
7 | | - tags: |
8 | | - - '*' |
9 | | -concurrency: |
10 | | - group: ${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, 'test-flaky-ci') && github.head_ref || github.run_id }} |
11 | | - cancel-in-progress: true |
12 | | -jobs: |
13 | | - test: |
14 | | - permissions: |
15 | | - contents: read |
16 | | - id-token: write |
17 | | - runs-on: ubuntu-latest |
18 | | - timeout-minutes: 30 |
19 | | - steps: |
20 | | - - uses: actions/checkout@v4 |
21 | | - - uses: dsherret/rust-toolchain-file@v1 |
22 | | - - uses: Swatinem/rust-cache@v2 |
23 | | - - uses: denoland/setup-deno@v1 |
24 | | - with: |
25 | | - deno-version: ~1.x |
26 | | - - uses: actions/setup-node@v4 |
27 | | - with: |
28 | | - node-version: '20' |
29 | | - registry-url: 'https://registry.npmjs.org' |
30 | | - |
31 | | - - name: Format |
32 | | - run: | |
33 | | - cargo fmt --all -- --check |
34 | | - deno fmt --check |
35 | | - - name: Lint (Cargo) |
36 | | - run: cargo clippy --all-targets --all-features --release |
37 | | - |
38 | | - - name: Build |
39 | | - run: deno task build |
40 | | - - name: Lint (Deno) |
41 | | - run: deno lint |
42 | | - - name: Test (Rust) |
43 | | - run: cargo test --all-targets --all-features --release |
44 | | - - name: Test (Deno) |
45 | | - run: deno task test |
46 | | - - name: Publish on tag |
47 | | - run: deno run -A jsr:@david/publish-on-tag@0.1.4 |
| 1 | +name: CI |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + branches: [main] |
| 5 | + push: |
| 6 | + branches: [main] |
| 7 | + tags: |
| 8 | + - "*" |
| 9 | +concurrency: |
| 10 | + group: ${{ github.workflow }}-${{ !contains(github.event.pull_request.labels.*.name, 'test-flaky-ci') && github.head_ref || github.run_id }} |
| 11 | + cancel-in-progress: true |
| 12 | +jobs: |
| 13 | + test: |
| 14 | + permissions: |
| 15 | + contents: read |
| 16 | + id-token: write |
| 17 | + runs-on: ubuntu-latest |
| 18 | + timeout-minutes: 30 |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + - uses: dsherret/rust-toolchain-file@v1 |
| 22 | + - uses: Swatinem/rust-cache@v2 |
| 23 | + - uses: denoland/setup-deno@v2 |
| 24 | + with: |
| 25 | + deno-version: ~2.x |
| 26 | + - uses: actions/setup-node@v4 |
| 27 | + with: |
| 28 | + node-version: "20" |
| 29 | + registry-url: "https://registry.npmjs.org" |
| 30 | + |
| 31 | + - name: Format |
| 32 | + run: | |
| 33 | + cargo fmt --all -- --check |
| 34 | + deno fmt --check |
| 35 | + - name: Lint (Cargo) |
| 36 | + run: cargo clippy --all-targets --all-features --release |
| 37 | + |
| 38 | + - name: Build |
| 39 | + run: deno task build |
| 40 | + - name: Lint (Deno) |
| 41 | + run: deno lint |
| 42 | + - name: Test (Rust) |
| 43 | + run: cargo test --all-targets --all-features --release |
| 44 | + - name: Test (Deno) |
| 45 | + run: deno task test |
| 46 | + - name: Publish on tag |
| 47 | + run: deno run -A jsr:@david/publish-on-tag@0.2.0 |
0 commit comments