Skip to content

Commit

Permalink
chore: Add CI with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cballevre committed Sep 11, 2024
1 parent ce5adc6 commit 9315730
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflow/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: CI

on:
pull_request:
push:
branches:
- master

jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile

lint:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Lint
run: yarn lint

test:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Unit tests
run: yarn test

build:
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- name: Build app
run: yarn build

0 comments on commit 9315730

Please sign in to comment.