-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a88a900
commit 051cb38
Showing
1 changed file
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
name: NodeJS Continuous Health Check | ||
# name: NodeJS Continuous Health Check | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
paths-ignore: | ||
- 'documentation/**' | ||
- 'README.md' | ||
- 'errors.log' | ||
pull_request: | ||
branches: [master] | ||
paths-ignore: | ||
- 'documentation/**' | ||
- 'README.md' | ||
- 'errors.log' | ||
# on: | ||
# push: | ||
# branches: [master] | ||
# paths-ignore: | ||
# - 'documentation/**' | ||
# - 'README.md' | ||
# - 'errors.log' | ||
# pull_request: | ||
# branches: [master] | ||
# paths-ignore: | ||
# - 'documentation/**' | ||
# - 'README.md' | ||
# - 'errors.log' | ||
|
||
jobs: | ||
node_ci: | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
NODE_CACHE: 'npm' | ||
PARALLEL: 1 | ||
# jobs: | ||
# node_ci: | ||
# runs-on: ${{ matrix.os }} | ||
# env: | ||
# NODE_CACHE: 'npm' | ||
# PARALLEL: 1 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [18] | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# os: [ubuntu-latest] | ||
# node: [18] | ||
|
||
steps: | ||
- name: Check out repository | ||
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
# We need to fetch all branches and commits so that Nx affected has a base to compare against. | ||
fetch-depth: 0 | ||
- name: Setup node env | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
check-latest: false | ||
registry-url: https://registry.npmjs.org | ||
cache: ${{ env.NODE_CACHE }} | ||
- uses: nrwl/nx-set-shas@v3 | ||
with: | ||
main-branch-name: 'master' | ||
- name: Install deps | ||
run: npm ci --prefer-offline --no-audit | ||
- name: Build affected | ||
run: npm run build | ||
# - name: Test affected | ||
# run: npm run test | ||
- name: Lint affected | ||
run: npm run lint | ||
# steps: | ||
# - name: Check out repository | ||
# if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }} | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# # We need to fetch all branches and commits so that Nx affected has a base to compare against. | ||
# fetch-depth: 0 | ||
# - name: Setup node env | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: ${{ matrix.node }} | ||
# check-latest: false | ||
# registry-url: https://registry.npmjs.org | ||
# cache: ${{ env.NODE_CACHE }} | ||
# - uses: nrwl/nx-set-shas@v3 | ||
# with: | ||
# main-branch-name: 'master' | ||
# - name: Install deps | ||
# run: npm ci --prefer-offline --no-audit | ||
# - name: Build affected | ||
# run: npm run build | ||
# # - name: Test affected | ||
# # run: npm run test | ||
# - name: Lint affected | ||
# run: npm run lint |