Skip to content

Commit

Permalink
ci: add github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamNowotny committed Jul 22, 2024
1 parent 846dfc7 commit f502aa7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"vitest.explorer"
"vitest.explorer",
"GitHub.vscode-github-actions"
]
}
}
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'npm'
- name: Build
run: |
npm install
npm test
npm run dist
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"email": "adam.nowotny@gmail.com",
"url": "https://github.com/AdamNowotny"
},
"engines": {
"node": "20"
},
"repository": {
"type": "git",
"url": "git://github.com/AdamNowotny/BuildReactor.git"
Expand Down

0 comments on commit f502aa7

Please sign in to comment.