Skip to content

Commit 1b0e67f

Browse files
authored
Create workflow.yml
1 parent 45db3f1 commit 1b0e67f

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run tests and upload coverage
2+
3+
on:
4+
push
5+
6+
jobs:
7+
test:
8+
name: Run tests and collect coverage
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 2
15+
16+
- name: Set up Node
17+
uses: actions/setup-node@v4
18+
19+
- name: Install dependencies
20+
run: npm install
21+
22+
- name: Run tests
23+
run: npm run test:coverage
24+
25+
- name: Upload results to Codecov
26+
uses: codecov/codecov-action@v5
27+
with:
28+
token: ${{ secrets.CODECOV_TOKEN }}
29+
slug: hex-ci/postcss-unit-processor

0 commit comments

Comments
 (0)