Skip to content

Commit

Permalink
Add tests that run on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jahands committed Mar 4, 2024
1 parent d83d03b commit 3103e8a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Pull Request

# This flow will re-run tests on the main branch after a PR has been merged.

on:
push:
branches:
- main

jobs:
test:
name: 'Tests'
timeout-minutes: 5
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
if: ${{ github.repository_owner == 'evanderkoogh' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: 'Install NPM Dependencies'
run: 'pnpm install --frozen-lockfile --child-concurrency=10'
- name: 'Check for Errors'
run: 'pnpm check'
1 change: 1 addition & 0 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: pull_request

jobs:
check:
name: 'Checks'
timeout-minutes: 5
runs-on: ubuntu-latest
concurrency:
Expand Down

0 comments on commit 3103e8a

Please sign in to comment.