generated from chingu-voyages/voyage-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78b245b
commit 619ac65
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI | ||
|
||
# When should this run? | ||
on: | ||
push: | ||
branches: [ dev ] # Runs on pushes to dev | ||
pull_request: | ||
branches: [ main, dev ] # Runs on PRs to main or dev | ||
|
||
# What jobs should run? | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest # Use Ubuntu as environment | ||
|
||
steps: | ||
# Step 1: Get the code | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Step 2: Setup Node.js | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'yarn' | ||
|
||
# Step 3: Install dependencies | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
# Step 4: Run lint | ||
- name: Lint | ||
run: yarn lint | ||
|
||
# Step 5: Try to build | ||
- name: Build | ||
run: yarn build |