diff --git a/.github/workflows/javascript-node.js.yml b/.github/workflows/javascript-node.js.yml index 137238e..2ef00d6 100644 --- a/.github/workflows/javascript-node.js.yml +++ b/.github/workflows/javascript-node.js.yml @@ -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: @@ -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 +