Skip to content

Commit

Permalink
Add a test action
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Aug 15, 2024
1 parent f7334b9 commit fcc21c0
Show file tree
Hide file tree
Showing 2 changed files with 313 additions and 277 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on: [push]

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # if needed
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Test the app
uses: borales/actions-yarn@v4
with:
cmd: test # will run `yarn test` command
Loading

0 comments on commit fcc21c0

Please sign in to comment.