upgrade eslint prettier #2896
  
    
      This file contains hidden or 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 | |
| - pre-release | |
| paths-ignore: | |
| - 'syntaxes/**' | |
| - 'tests/**' | |
| - '**.md' | |
| pull_request: | |
| branches: | |
| - main | |
| - pre-release | |
| paths-ignore: | |
| - 'syntaxes/**' | |
| - 'tests/**' | |
| - '**.md' | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
| - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - name: npm install | |
| run: npm ci | |
| - name: lint | |
| run: npm run lint | |
| - name: format | |
| run: npm run check-format | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| vscode: | |
| - '1.86.2' | |
| - 'insiders' | |
| - 'stable' | |
| os: | |
| - windows-latest | |
| - macos-latest | |
| - ubuntu-latest | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
| - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: npm | |
| - 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: xvfb-run -a npm test | |
| if: runner.os == 'Linux' | |
| - name: Run Tests | |
| run: npm test | |
| if: runner.os != 'Linux' |