Skip to content

Commit

Permalink
Upload CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidrylko committed Apr 21, 2024
1 parent 4977cb3 commit 31506d0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Continuous Integration

on:
push:
branches: ['master']

concurrency:
group: 'ci'
cancel-in-progress: true

defaults:
run:
shell: bash

jobs:
checks:
runs-on: ubuntu-latest
strategy:
matrix:
check: ['type-check', 'format-check']
node: ['18', '20', '22']

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci

- name: Run Check
run: npm run ${{ matrix.check }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\""
"type:check": "tsc --noEmit",
"format:write": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,md}\""
},
"dependencies": {
"@fontsource-variable/montserrat": "^5.0.18",
Expand Down

0 comments on commit 31506d0

Please sign in to comment.