Skip to content

chore: watch .env files (and then reload) (#403) #656

chore: watch .env files (and then reload) (#403)

chore: watch .env files (and then reload) (#403) #656

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
FORCE_COLOR: 1
jobs:
test:
runs-on: ${{ matrix.os }}
name: Run tests on ${{ matrix.os }}, Node ${{ matrix.node-version }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
node-version: [ 16 ]
include:
- os: ubuntu-latest
node-version: 18
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npx playwright install chromium
- run: npm run lint
- run: npm run build
- run: npm run test -- --workers=1
- run: npx vsce package
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16'
- uses: actions/upload-artifact@v3
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '16'
with:
name: vsc-extension
path: "*.vsix"
retention-days: 30
test-e2e:
runs-on: ${{ matrix.os }}
name: Run e2e tests
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
env:
DEBUG: pw:browser
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run build
- run: npm ci
working-directory: ./tests-integration
- run: xvfb-run npx playwright test
working-directory: ./tests-integration
if: matrix.os == 'ubuntu-latest'
- run: npx playwright test
working-directory: ./tests-integration
if: matrix.os != 'ubuntu-latest'
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report-${{ matrix.os }}
path: tests-integration/playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v3
if: failure()
with:
name: playwright-test-results-${{ matrix.os }}
path: tests-integration/test-results/
retention-days: 10