From 67aad0017f761133abb05270293c4afad7ecffd5 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 7 Jul 2020 18:36:57 +0200 Subject: Simplify workflows --- .github/workflows/frontend.yml | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to '.github/workflows/frontend.yml') diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 494c0829..39910bc8 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -2,20 +2,25 @@ name: Frontend on: [push] +defaults: + run: + working-directory: frontend + jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + node: [12.x] steps: - - uses: actions/checkout@v2 - - name: Set up Node.js - uses: actions/setup-node@v1 - with: - node-version: 12.x - - run: npm install - working-directory: frontend - - run: npm run build --if-present - working-directory: frontend - - run: npm test - working-directory: frontend - env: - CI: true + - uses: actions/checkout@v2 + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npm run build --if-present + - run: npm test + env: + CI: true -- cgit v1.2.3