forked from rancher-sandbox/rancher-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 955 Bytes
/
test.yaml
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
name: Test
on:
push: {}
pull_request: {}
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/yarn-install
- run: yarn build
- run: yarn lint:nofix
- name: Install shfmt
run: go install mvdan.cc/sh/v3/cmd/shfmt@latest
- run: make -C bats lint
- run: yarn test
lint:
strategy:
matrix:
# We run the Linux lint in the `test` flow, no need to repeat it.
runs-on: [windows-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}
steps:
- if: runner.os == 'Windows'
name: Configure git to use Unix line endings
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: ./.github/actions/yarn-install
- run: yarn lint:nofix