Extended to support Configurations added in Azure & with that test results can be categorized based on the config used dev/stage/prod #14
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: Test | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'LICENSE' | |
- '.editorconfig' | |
branches: | |
- main | |
- master | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
- 'LICENSE' | |
- '.editorconfig' | |
branches: | |
- main | |
- master | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
node: [20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install modules | |
run: yarn | |
- name: Set up environment variable | |
if: ${{ matrix.os == 'windows-latest' }} | |
run: | | |
echo "::set-env name=AZURE_DEVOPS_PAT::${{ secrets.AZURE_DEVOPS_PAT }}" | |
- name: Set up environment variable | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
export AZURE_DEVOPS_PAT="${{ secrets.AZURE_DEVOPS_PAT }}" | |
- name: Run tests | |
run: yarn test |