-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (49 loc) · 1.25 KB
/
test.yml
File metadata and controls
52 lines (49 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
name: Test - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Handle line endings
shell: bash
if: runner.os == 'Windows'
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- uses: actions/checkout@v6
- uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo
- uses: jdx/mise-action@v3
- run: pnpm i --frozen-lockfile
- name: Configure path (windows)
shell: bash
if: runner.os == 'Windows'
run: |
echo 'C:\\npm\\prefix' >> $GITHUB_PATH
- name: Setup
run: pnpm run test:setup
- name: Unit tests
run: pnpm run test:unit
- name: Integration tests
run: pnpm run test:integration
release:
needs: test
if: ${{ github.event_name == 'push' }}
secrets: inherit
uses: ./.github/workflows/release.yml