Skip to content

Commit

Permalink
ci: add github actions for every pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
mathmelo committed Jun 6, 2024
1 parent 5125937 commit 2af0e51
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: ci-node-workflow
on: [pull_request]
jobs:
check-application:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.0
- run: npm run test
- run: npm run start
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ function soma(a, b) {
return a + b
}

console.log('passou aqui')

module.exports = soma
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.0.0",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "node index.test.js"
},
"keywords": [],
Expand Down

0 comments on commit 2af0e51

Please sign in to comment.