Skip to content

Commit

Permalink
github: Add frontend workflow (#160)
Browse files Browse the repository at this point in the history
Workflow file added to .github/worklows!
  • Loading branch information
illume authored Feb 2, 2024
1 parent 021d024 commit f66e014
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Build and test frontend

on:
pull_request:
paths:
- 'frontend/**'
- '.github/**'
push:
branches:
- main
paths:
- 'frontend/**'
- '.github/**'

jobs:
build:

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 20.x ]

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: |
pwd
cd frontend
npm install
- name: Run linter
run: |
cd frontend
npm run lint
- name: Run type checker
run: |
cd frontend
npm run tsc
# - name: Run tests
# run: |
# cd frontend
# npm test -- --passWithNoTests

# - name: Build frontend
# run: |
# cd frontend
# npm run build

# - name: Build storybook
# run: |
# cd frontend
# npm run build-storybook

0 comments on commit f66e014

Please sign in to comment.