Skip to content

Commit

Permalink
Add GitHub Actions workflow for build and style check
Browse files Browse the repository at this point in the history
  • Loading branch information
GewoonJaap committed Apr 24, 2024
1 parent 0f29093 commit 7aeacd0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build & Style Check

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# setup yarn
- name: Setup Yarn
run: npm install -g yarn
# install dependencies
- name: Install Dependencies
run: yarn install
# build
- name: Build
run: yarn build
# formatting check
- name: Formatting Check
run: yarn format:check

0 comments on commit 7aeacd0

Please sign in to comment.