mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-08 03:04:00 -05:00
fix(tools): misc. updates to action workflows
This commit is contained in:
17
.github/workflows/node.js-tests.yml
vendored
17
.github/workflows/node.js-tests.yml
vendored
@@ -1,9 +1,6 @@
|
||||
name: Node.js CI
|
||||
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- production-**
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
@@ -26,14 +23,17 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
|
||||
- name: Set Environment variables
|
||||
run: cp sample.env .env
|
||||
|
||||
- name: Lint Source Files
|
||||
run: |
|
||||
npm ci
|
||||
npm run ensure-env --if-present
|
||||
npm run lint --if-present
|
||||
|
||||
build:
|
||||
name: Check Builds and Run Integration Tests
|
||||
test:
|
||||
name: Test
|
||||
needs: lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -58,8 +58,5 @@ jobs:
|
||||
npm ci
|
||||
npm run ensure-env --if-present
|
||||
|
||||
- name: Build Packages
|
||||
run: npm run build --if-present
|
||||
|
||||
- name: Run Tests
|
||||
run: npm test
|
||||
|
||||
Reference in New Issue
Block a user