File tree Expand file tree Collapse file tree 2 files changed +38
-14
lines changed Expand file tree Collapse file tree 2 files changed +38
-14
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,49 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- pull_request :
6
5
branches : [main]
6
+ pull_request : {}
7
7
8
8
jobs :
9
- main :
9
+ lints :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v4
13
+ - uses : wyvox/action-setup-pnpm@v3
14
+ - run : pnpm lint
15
+
16
+ test_success :
10
17
strategy :
11
18
matrix :
12
19
os :
13
20
- ubuntu-latest
14
- - windows-latest
21
+ # - windows-latest
15
22
- macos-latest
16
- node :
17
- - latest
18
- - lts/*
19
- - 18
20
23
runs-on : ${{ matrix.os }}
21
24
steps :
22
25
- uses : actions/checkout@v4
23
- - uses : wyvox/action-setup-pnpm@v3
24
26
- uses : ./
25
- with :
26
- node-version : ${{ matrix.node }}
27
- - run : pnpm lint:fix
27
+
28
+ test_failure :
29
+ strategy :
30
+ matrix :
31
+ os :
32
+ - ubuntu-latest
33
+ # - windows-latest
34
+ - macos-latest
35
+ runs-on : ${{ matrix.os }}
36
+ steps :
37
+ - uses : actions/checkout@v4
38
+ - run : rm .prettierignore
39
+ - uses : ./
40
+ id : self
41
+ continue-on-error : true
42
+ - if : always()
43
+ run : |
44
+ if [[ "${{ steps.self.outcome }}" == "failure" ]]; then
45
+ echo "Successfully failed"
46
+ exit 0;
47
+ else
48
+ echo "Unsuccessfully failed. Expected failure."
49
+ exit 1
50
+ fi
Original file line number Diff line number Diff line change 1
1
name : Ensure no git diff exists
2
- description : |
3
- Use git diff --exit-code to ensure stability of commands and to reduce flakiness in CI.
4
- If you see an error from this task, please check the command(s) from the previous step(s) and try running them locally.
2
+ description : Use git diff --exit-code to ensure stability of commands and to reduce flakiness in CI.
3
+ branding :
4
+ icon : award
5
+ color : green
5
6
6
7
# None
7
8
inputs : {}
You can’t perform that action at this time.
0 commit comments