Skip to content

chore(deps): pin dependencies #290

chore(deps): pin dependencies

chore(deps): pin dependencies #290

Workflow file for this run

name: Test & Build
on:
pull_request:
push:
branches:
- main
defaults:
run:
shell: bash
working-directory: ./
permissions:
contents: read
env:
DO_NOT_TRACK: 1
jobs:
test:
runs-on: ubuntu-x64
permissions:
contents: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.ref || github.ref }}
fetch-depth: 1
persist-credentials: false
- name: Setup NodeJS environment
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
cache: yarn
- name: Install frontend dependencies
run: yarn install --frozen-lockfile;
- name: Spellcheck
run: yarn spellcheck;
- name: Setup Go environment
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: "go.work"
cache-dependency-path: "**/*.sum"
- name: Validate environment
run: |
echo "-------- node version -----"
node --version
echo "-------- npm version -----"
npm --version
echo "-------- yarn version -----"
yarn --version
echo "-------- go version -----"
go version
- name: Test
run: yarn test