Added gitCheckoutDefaultBranch command #95
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run-tests: | |
name: Run tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, ubuntu-latest, macos-latest] | |
env: | |
ANDREAS_TEST: true | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
- name: Install dependencies | |
run: npm --color install | |
- name: Compile | |
run: npm --color run compile | |
- name: Run tests (Linux) | |
run: xvfb-run -a npm --color run test:ci | |
if: runner.os == 'Linux' | |
- name: Run tests (Other) | |
run: npm --color run test:ci | |
if: runner.os != 'Linux' |