Skip to content

Commit

Permalink
Separate test/release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alattalatta committed Jul 17, 2023
1 parent d8a218c commit b5b3455
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Release

on:
push:
branches: [main]
pull_request:
branches: [main]
branches:
- main

jobs:
build:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test-mr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test

on:
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'pnpm'
- run: pnpm i
- run: pnpm test

0 comments on commit b5b3455

Please sign in to comment.