Skip to content

chore: added job to test latest major version on npm #48

chore: added job to test latest major version on npm

chore: added job to test latest major version on npm #48

Workflow file for this run

name: v4.x branch
on:
push:
branches:
- v4.x
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache node_modules
id: cacheModules
uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- name: Install dependencies
if: steps.cacheModules.outputs.cache-hit != 'true'
run: npm install
checks:
name: Check
needs: [install]
uses: ./.github/workflows/checks.yml

Check failure on line 27 in .github/workflows/branch.yml

View workflow run for this annotation

GitHub Actions / v4.x branch

Invalid workflow file

The workflow is not valid. In .github/workflows/branch.yml (Line: 27, Col: 11): Error from called workflow lquixada/cross-fetch/.github/workflows/checks.yml@7e4006ffe2cc62e68795d3b7921a78afbe7559f2 (Line: 66, Col: 20): Job 'typecheck' depends on unknown job 'install'.
# The security job can't run on pull requests opened from forks because
# Github doesn't pass down the SNYK_TOKEN environment variable.
security:
name: Check Security
needs: [install]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.npm # this is cache where npm installs from before going out to the network
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
- run: npm install --prefer-offline
- run: make secure
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}