Merge pull request #830 from ItinerisLtd/dependabot/npm_and_yarn/type… #1982
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
name: CI | |
on: push | |
jobs: | |
php: | |
name: Node | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup the Node environment on ${{ runner.os }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version-file: '.nvmrc' | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install dependencies using Yarn | |
run: yarn install --frozen-lockfile --prefer-offline | |
- run: yarn run build | |
- run: yarn run test |