build(deps): Bump workflows to latest trusted versions #2382
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: | |
- main | |
- f-tfc | |
paths-ignore: | |
- 'syntaxes/**' | |
- 'tests/**' | |
- '**.md' | |
pull_request: | |
branches: | |
- main | |
- f-tfc | |
paths-ignore: | |
- 'syntaxes/**' | |
- 'tests/**' | |
- '**.md' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version-file: '.nvmrc' | |
- name: npm install | |
run: npm ci | |
- name: lint | |
run: npm run lint | |
- name: format | |
run: npm run check-format | |
unit: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- macos-latest | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version-file: '.nvmrc' | |
- name: npm install | |
run: npm ci | |
- name: unit test | |
run: npm run test:unit | |
- name: web unit | |
run: npm run test:unit:web | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
vscode: | |
- '1.82.3' | |
- 'insiders' | |
- 'stable' | |
os: | |
- windows-latest | |
- macos-latest | |
- macos-11.0 | |
- ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1 | |
with: | |
node-version-file: '.nvmrc' | |
- name: Set up Xvfb (Ubuntu) | |
run: | | |
/usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & | |
echo ">>> Started xvfb" | |
if: matrix.os == 'ubuntu-latest' | |
- name: Install Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_wrapper: false | |
terraform_version: '~1.6' | |
- name: Terraform version | |
run: terraform version | |
- name: Clean Install Dependencies | |
run: npm ci | |
- name: Run Tests | |
run: npm test | |
env: | |
CI: true | |
DISPLAY: ':99.0' | |
VSCODE_VERSION: ${{ matrix.vscode }} |