Skip to content

Merge pull request #38 from hashicorp-forge/dependabot/github_actions… #101

Merge pull request #38 from hashicorp-forge/dependabot/github_actions…

Merge pull request #38 from hashicorp-forge/dependabot/github_actions… #101

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: 1.19
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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