Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexus633 committed Nov 5, 2023
1 parent ad17759 commit 32ffb11
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
branches: [ "master" ]

jobs:
build:
build-with-env:

runs-on: ubuntu-latest

Expand All @@ -28,3 +28,26 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm test

build-without-env:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- name: Remove File
uses: JesseTG/rm@v1.0.3
with:
path: .env
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test

0 comments on commit 32ffb11

Please sign in to comment.