diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8de331b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: + - main + - dev + + pull_request: + branches: + - main + - dev + + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Clone repo + uses: actions/checkout@v4 + + - name: Install NodeJS + uses: actions/setup-node@v4 + with: + node-version: 22.12.0 + + - name: Install dependencies + run: npm ci + + - name: Run test suites + run: npm run test + + - name: Print message + run: echo "All tests passed. 🎉 :)" + + - name: Print github context for demo + run: echo "${{ toJson(github) }}"