Skip to content

Commit

Permalink
Add workflow for testing a PR (withou a deploy)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Solly committed Mar 8, 2024
1 parent 1cc679e commit 1aa7ae2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/noDeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: No Deploy (Test and Build)

on:
# Run on any push to any branch except master
push:
branches-ignore: [master]

# Run on any pull request targeting master
pull_request:
branches: [master]

jobs:
testAndBuild:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm run lint
- name: Deep Type check
run: pnpm run type-check
- name: Build application
run: pnpm run build

0 comments on commit 1aa7ae2

Please sign in to comment.