Bump actions/checkout from 4.0.0 to 4.1.0 #2212
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@8ade135a41bc03ea155e62e844d188df1ea18608 # https://github.com/actions/checkout/releases/tag/v4.1.0 | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # https://github.com/actions/setup-node/releases/tag/v3.8.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@8ade135a41bc03ea155e62e844d188df1ea18608 # https://github.com/actions/checkout/releases/tag/v4.1.0 | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # https://github.com/actions/setup-node/releases/tag/v3.8.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.75.1' | |
- '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@8ade135a41bc03ea155e62e844d188df1ea18608 # https://github.com/actions/checkout/releases/tag/v4.1.0 | |
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # https://github.com/actions/setup-node/releases/tag/v3.8.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@v2 | |
with: | |
terraform_wrapper: false | |
terraform_version: '~1.5' | |
- 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 }} |