Skip to content

add test workflow

add test workflow #6

Workflow file for this run

name: TEST
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: g++ -Wall -Wextra -o test source.cpp
- run: ./test
test:
needs:
- compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run build
- run: node dist/index.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}