Don't create main branch when on main and don't run some tests on main #289
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: | |
- main | |
tags: ["*"] | |
workflow_dispatch: | |
jobs: | |
test: | |
uses: ./.github/workflows/ReusableTest.yml | |
with: | |
os: ${{ matrix.os }} | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
allow_failure: ${{ matrix.allow_failure }} | |
run_codecov: ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }} | |
secrets: | |
codecov_token: ${{ secrets.CODECOV_TOKEN }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.6" | |
- "1" | |
os: | |
- ubuntu-latest | |
- macOS-latest | |
- windows-latest | |
arch: | |
- x64 | |
allow_failure: [false] |