Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test Project

#trigger
on:
pull_request:
branches:
- main
jobs:
test:
#the example was ran in ubuntu
runs-on: ubuntu-latest
container:
image: node 20
steps:
- uses: actions/checkout@v3 #using checkout action
with:
node-version: 20
- run: npm ci #check all dependencies environment and install it automatically
- run: npm test
- run: npm run build