Skip to content

Commit

Permalink
Update nodejs-tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maceip authored Mar 8, 2024
1 parent 7b828ef commit ff216af
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions .github/workflows/nodejs-tests.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
name: pnpm test
name: yarn test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [15]
steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
with:
version: 7
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
# -------------------------------------------------------------------------
- name: Formatting
run: pnpm format
- name: Running tests
run: pnpm test
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install
- name: Build production bundle
uses: borales/actions-yarn@v4
with:
cmd: void:deploy
- name: Test the app
uses: borales/actions-yarn@v4
with:
cmd: test
- name: lint
uses: borales/actions-yarn@v4
with:
cmd: format:fix

0 comments on commit ff216af

Please sign in to comment.