Skip to content

TF-33257 HCP Terraform & Enterprise Docs Update Notification Configur… #7746

TF-33257 HCP Terraform & Enterprise Docs Update Notification Configur…

TF-33257 HCP Terraform & Enterprise Docs Update Notification Configur… #7746

Workflow file for this run

name: 'Test & Lint'
on:
workflow_dispatch:
inputs:
sha:
description: 'SHA to rest tests and linting on'
required: true
type: string
pull_request:
push:
branches: ['main', 'develop']
permissions:
contents: read
jobs:
test:
name: 'Run Tests 🧪'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.event.after || inputs.sha }}
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
cache: 'npm'
node-version-file: 'package.json'
- run: npm ci
- run: npm run test
lint:
name: 'Lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
ref: ${{ github.event.after || inputs.sha }}
- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
cache: 'npm'
node-version-file: 'package.json'
- name: Install Dependencies
run: npm ci
- name: Run lint check
run: npm run lint