Compare commits

...

3 Commits

Author SHA1 Message Date
chris48s
c3786e2bf0 use PAT if available else fall back to workflow token 2022-10-16 18:22:52 +01:00
chris48s
f0ad7b6b75 skip workflows on push to dependabot branch 2022-10-16 17:04:09 +01:00
chris48s
80ab79e589 constrain auto-close and enforce-dependency-review triggers
we don't need to run these on PR close or when we apply labels, for example
2022-10-16 17:03:12 +01:00
9 changed files with 33 additions and 4 deletions

View File

@@ -1,5 +1,7 @@
name: Auto close
on: pull_request_target
on:
pull_request_target:
types: [opened]
permissions:
pull-requests: write

View File

@@ -1,5 +1,7 @@
name: 'Dependency Review'
on: [pull_request]
on:
pull_request:
types: [opened, edited, reopened, synchronize]
jobs:
enforce-dependency-review:

View File

@@ -4,10 +4,13 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-integration-17:
runs-on: ubuntu-latest
env:
PAT_EXISTS: ${{ secrets.GH_PAT != '' }}
services:
redis:
@@ -31,7 +34,14 @@ jobs:
env:
NPM_CONFIG_ENGINE_STRICT: 'false'
- name: Integration Tests
- name: Integration Tests (with PAT)
if: ${{ env.PAT_EXISTS == 'true' }}
uses: ./.github/actions/integration-tests
with:
github-token: '${{ secrets.GH_PAT }}'
- name: Integration Tests (with workflow token)
if: ${{ env.PAT_EXISTS == 'false' }}
uses: ./.github/actions/integration-tests
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

View File

@@ -4,10 +4,13 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-integration:
runs-on: ubuntu-latest
env:
PAT_EXISTS: ${{ secrets.GH_PAT != '' }}
services:
redis:
@@ -29,7 +32,14 @@ jobs:
with:
node-version: 16
- name: Integration Tests
- name: Integration Tests (with PAT)
if: ${{ env.PAT_EXISTS == 'true' }}
uses: ./.github/actions/integration-tests
with:
github-token: '${{ secrets.GH_PAT }}'
- name: Integration Tests (with workflow token)
if: ${{ env.PAT_EXISTS == 'false' }}
uses: ./.github/actions/integration-tests
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'

View File

@@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-lint:

View File

@@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-main-17:

View File

@@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-main:

View File

@@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
# Smoke test (render a badge with the CLI) with only the package
# dependencies installed.

View File

@@ -4,6 +4,7 @@ on:
push:
branches-ignore:
- 'gh-pages'
- 'dependabot/**'
jobs:
test-package-lib: