Skip to content

Commit

Permalink
ci: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Jun 19, 2022
1 parent 92ab78f commit f626a22
Showing 1 changed file with 39 additions and 10 deletions.
49 changes: 39 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,70 @@ on:
- 'docs/**'
- '*.md'

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}"
cancel-in-progress: true

jobs:
build:
dependency-review:
name: Dependency Review
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest

permissions:
contents: read
steps:
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Dependency review
uses: actions/dependency-review-action@v1

test:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
node-version: [10, 12, 14, 15, 16]

steps:
- uses: actions/checkout@v3
- name: Setup Node
- name: Check out repo
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: Install Dependencies
run: npm install
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install --ignore-scripts
env:
NODE_ENV: development

- name: Lint-CI
run: npm run lint-ci

- name: Test-Types
run: npm run test-types

- name: Test-CI
run: npm run test-ci

automerge:
needs: build
runs-on: ubuntu-latest
name: Automerge Dependabot PRs
if: >
github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'dependabot[bot]'
needs: test
permissions:
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
Expand Down

0 comments on commit f626a22

Please sign in to comment.