Skip to content

Commit d2c6b55

Browse files
Merge pull request #2 from OutsideofemiT/main
added yml code
2 parents dea2869 + fc9cca3 commit d2c6b55

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
```yml
2+
# Name of workflow
3+
name: Lint workflow
4+
5+
# Trigger workflow on all pull requests
6+
on:
7+
pull_request:
8+
branches:
9+
- develop
10+
- staging
11+
12+
# Jobs to carry out
13+
jobs:
14+
test:
15+
# Operating system to run job on
16+
runs-on: ubuntu-latest
17+
18+
# Steps in job
19+
steps:
20+
# Get code from repo
21+
- name: Checkout code
22+
uses: actions/checkout@v1
23+
24+
- name: Use Node.js 21.x
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: 21.x
28+
29+
# Install dependencies
30+
- name: 🧰 install deps
31+
run: npm install
32+
33+
# Run lint
34+
- name: Run lint
35+
run: npm run lint

0 commit comments

Comments
 (0)