Skip to content

deps: actions/setup-node action to v4 #591

deps: actions/setup-node action to v4

deps: actions/setup-node action to v4 #591

Workflow file for this run

name: Validate
on:
- pull_request
- push
permissions: {}
jobs:
validate:
name: Lint & Test
permissions:
checks: write
runs-on: ubuntu-latest
steps:
- if: >-
github.actor != 'dependabot[bot]' && (
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
)
name: Check out repo
uses: actions/checkout@v4
with:
token: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }}
- if: >-
github.actor == 'dependabot[bot]' || (
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
)
name: Check out repo
uses: actions/checkout@v4
# We don't share secrets with Dependabot nor forks.
- name: Set Git user
run: |
git config user.name seek-oss-ci
git config user.email [email protected]
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test
run: yarn test:ci
- name: Lint
run: yarn lint