Skip to content

Commit

Permalink
🔧 chore[workflow]: setup github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
boytur committed Aug 19, 2024
1 parent 317ec35 commit 96ed9d6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
push:
branches: ["master", "develop"]
pull_request:
branches: ["master", "develop"]

jobs:
build:
runs-on: self-hosted

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
working-directory: milkyway-bot/report-server
run: |
npm install actions/setup-node@v4
actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
working-directory: milkyway-bot/report-server

- run: npm run build --if-present
working-directory: milkyway-bot/report-server

- run: npm test
working-directory: milkyway-bot/report-server

0 comments on commit 96ed9d6

Please sign in to comment.