Skip to content

Commit 161ac6e

Browse files
committed
Github Actions
1 parent bae4353 commit 161ac6e

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

.github/workflows/learn-github-actions.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,25 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8+
89
jobs:
9-
check-bats-version:
10-
runs-on: ubuntu-latest
10+
ci:
11+
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v5
13+
- uses: actions/checkout@v4
14+
1315
- uses: actions/setup-node@v4
1416
with:
1517
node-version: '20'
16-
- run: npm install -g bats
17-
- run: bats -v
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Run lint
23+
run: npm run lint
24+
25+
- name: Run Tests
26+
run: npm run test -- --watch=false
27+
28+
- name: Build Projects
29+
run: npm run build

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"start": "react-scripts start",
1717
"build": "react-scripts build",
1818
"test": "react-scripts test",
19-
"eject": "react-scripts eject"
19+
"eject": "react-scripts eject",
20+
"lint": "eslint ."
2021
},
2122
"eslintConfig": {
2223
"extends": [

0 commit comments

Comments
 (0)