Skip to content

Commit

Permalink
Fix JS Action
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmanc authored Jan 31, 2023
1 parent 2c4752a commit 5b1494f
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/javascript-node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@

name: JavaScript Node.js CI

defaults:
run:
working-directory: exercises/typescript

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

defaults:
run:
working-directory: exercises/typescript

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -23,13 +24,14 @@ jobs:
# 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'
cache-dependency-path: 'exercises/typescript/package-lock.json'
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'exercises/typescript/package-lock.json'
- run: npm ci
- run: npm run build --if-present
- run: npm test

0 comments on commit 5b1494f

Please sign in to comment.