Skip to content

Commit

Permalink
CI fix (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanelly95 authored Sep 20, 2024
1 parent d5a1d1e commit 68aca25
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,31 @@ name: CI
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request_target:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
tests:
runs-on: self-hosted

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

steps:
- uses: actions/checkout@v3
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check branch
run: git branch
- name: Use Node.js ${{ matrix.node-version }}

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 20
cache: "npm"

- name: Install Dependencies
run: npm install
run: |
npm --version
node --version
npm install
- name: Run Tests
run: npm test
run: npm run test

0 comments on commit 68aca25

Please sign in to comment.