From 2d625732ed0d74f4291370bddc96df27219b78e6 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 17 Jul 2020 11:22:44 +0200 Subject: Fix conditional Github Actions trigger This change fixes the conditional Github Actions trigger that we use to only trigger CI invocations for the changed subprojects. Previously, Github Actions was only triggered when a file in the top-level directory of the subproject was changed. --- .github/workflows/frontend.yml | 44 +++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to '.github/workflows/frontend.yml') diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index ec4a7e71..da6f1031 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -1,29 +1,29 @@ name: Frontend on: - push: - paths: - - 'frontend/*' + push: + paths: + - 'frontend/**' defaults: - run: - working-directory: frontend + run: + working-directory: frontend jobs: - build: - 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: ${{ matrix.node }} - - run: npm install - - run: npm run build --if-present - - run: npm test - env: - CI: true + build: + 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: ${{ matrix.node }} + - run: npm install + - run: npm run build --if-present + - run: npm test + env: + CI: true -- cgit v1.2.3