From 1e0ccb4e2e47e75d1b2c648603ebc0e85acd7e17 Mon Sep 17 00:00:00 2001 From: Luke Collins Date: Wed, 18 Oct 2023 19:05:12 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 40 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2aacfe6..6142ff3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,24 +1,42 @@ name: "build-test" on: # rebuild any PRs and main branch changes - pull_request: push: branches: + - main - master - - 'releases/*' + - release/* + - releases/* + pull_request: + branches: + - main + - master + - release/* + - releases/* + +permissions: + security-events: write + actions: write + checks: write + deployments: write + id-token: write + discussions: write + pull-requests: write + statuses: write jobs: build: # make sure build/ci work properly runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - run: | - npm install - - run: | - npm run all + - uses: actions/checkout@v4 + - run: | + npm install + - run: | + npm run all test: # make sure the action works on a clean machine without building + needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: ./ - with: - path: '**/checkstyle-result.xml' \ No newline at end of file + - uses: actions/checkout@v4 + - uses: ./ + with: + path: '**/checkstyle-result.xml'