Skip to content

Commit 4afea48

Browse files
committed
add workflow to validate PRs
1 parent 0e2dcf1 commit 4afea48

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull_request.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+
name: pull-request
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
registry-url: https://npm.pkg.github.com/
18+
scope: '@devrev'
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npm test --if-present
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.GH_WRITE_PACKAGE_TOKEN}}
24+
DEVREV_TOKEN: ${{ secrets.DEVREV_TOKEN }}

0 commit comments

Comments
 (0)