From 8a4ef22f5298aaf54eff4127dcda568dcdd731fa Mon Sep 17 00:00:00 2001 From: Mark Crossfield Date: Tue, 31 Jan 2023 10:46:04 +0000 Subject: [PATCH] Fix syntax error in TS GH action --- .../{node.js.yml => typescript-node.js.yml} | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) rename .github/workflows/{node.js.yml => typescript-node.js.yml} (72%) diff --git a/.github/workflows/node.js.yml b/.github/workflows/typescript-node.js.yml similarity index 72% rename from .github/workflows/node.js.yml rename to .github/workflows/typescript-node.js.yml index ff57ee8..2c36666 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/typescript-node.js.yml @@ -3,16 +3,16 @@ name: TypeScript 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: @@ -24,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 +