Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add GitHub Actions workflow #15

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading