Skip to content

Reenable Dependabot for internal GitHub actions #2623

Reenable Dependabot for internal GitHub actions

Reenable Dependabot for internal GitHub actions #2623

Workflow file for this run

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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: '.nvmrc'
- name: npm install
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install chromium
- 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@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
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.7'
- 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 }}