Skip to content

Commit

Permalink
Merge pull request #15 from chingu-voyages/ci/add-github-actions
Browse files Browse the repository at this point in the history
CI: Add GitHub Actions workflow
  • Loading branch information
xyzhou-projects authored Jan 12, 2025
2 parents 78b245b + 619ac65 commit f94caa6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
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

0 comments on commit f94caa6

Please sign in to comment.