Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit e0539f0

Browse files
authored
Merge pull request #51 from akanoce/linting-build-gh
chore(actions): lint + build on PR and push
2 parents 4438325 + 49bb7af commit e0539f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/lint-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Lint and Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency: ${{ github.workflow }}-${{ github.ref }}
10+
11+
jobs:
12+
lint-build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node with .nvmrc
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: .nvmrc
22+
cache: "yarn"
23+
24+
- name: Install dependencies
25+
run: yarn install --frozen-lockfile
26+
27+
- name: Run linting
28+
run: yarn lint
29+
30+
- name: Run build
31+
run: yarn build

0 commit comments

Comments
 (0)