Skip to content

Merge pull request #100 from hashicorp-forge/dependabot/npm_and_yarn/… #215

Merge pull request #100 from hashicorp-forge/dependabot/npm_and_yarn/…

Merge pull request #100 from hashicorp-forge/dependabot/npm_and_yarn/… #215

Workflow file for this run

name: lint-test
on:
push:
branches:
- main
pull_request:
jobs:
run:
runs-on: "ubuntu-latest"
name: "Run"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0
with:
go-version: 1.19
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 20
cache: npm
- name: npm ci
run: npm ci
- name: Format Check
run: npm run format-check
- name: Verify
run: |
npm run build
# Fail if "npm run build" generated new changes in dist
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
- name: Test
run: npm run test