Skip to content

Commit 668db9b

Browse files
Add CI (#1)
* Try this * Change ci run conditions * fix * oi * oi * oi * oi * ope * ope * ope * ope * ope
1 parent 032b800 commit 668db9b

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,49 @@ name: CI
22

33
on:
44
push:
5-
pull_request:
65
branches: [main]
6+
pull_request: {}
77

88
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:
1017
strategy:
1118
matrix:
1219
os:
1320
- ubuntu-latest
14-
- windows-latest
21+
# - windows-latest
1522
- macos-latest
16-
node:
17-
- latest
18-
- lts/*
19-
- 18
2023
runs-on: ${{ matrix.os }}
2124
steps:
2225
- uses: actions/checkout@v4
23-
- uses: wyvox/action-setup-pnpm@v3
2426
- 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

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
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
56

67
# None
78
inputs: {}

0 commit comments

Comments
 (0)