Skip to content

Commit fb5bf15

Browse files
committed
infra: reformat testing workflow
1 parent 06f8a65 commit fb5bf15

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
name: lint-and-test
22

33
on:
4-
5-
push:
6-
7-
branches:
8-
9-
- main
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
108

119
jobs:
12-
13-
lint-and-test:
14-
10+
lint-and-test:
1511
runs-on: ubuntu-latest
16-
1712
name: run testing and linting
1813

1914
steps:
15+
- name: checkout
16+
uses: actions/checkout@v3
2017

21-
- uses: actions/checkout@v3
22-
23-
- uses: bahmutov/npm-install@v1
18+
- name: install deps
19+
uses: bahmutov/npm-install@v1
2420

25-
- run: npm run lint (Run ESLint)
21+
- name: run ESLint
22+
run: npm run lint
2623

27-
- run: npm run test (Run Jest)
24+
- name: run Jest
25+
run: npm test

0 commit comments

Comments
 (0)