workflow fixtest #8
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 workflow" | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- '**.md' | |
- '**.MD' | |
- '.gitignore' | |
- 'LICENSE' | |
- 'CODEOWNERS' | |
- '.github/*.yml' | |
jobs: | |
test1: | |
name: Test1 | |
permissions: | |
contents: read | |
if: | | |
${{ github.ref_name == 'main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo 'Test1 ran' | |
test2: | |
name: Test2 | |
permissions: | |
contents: read | |
if: github.ref_name == 'main' | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo 'Test2 ran' | |
test3: | |
name: Test3 | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo "Test3: ran on $NAME" | |
env: | |
NAME: "${{ github.ref_name }}" | |
test4: | |
name: Test4 | |
permissions: | |
contents: read | |
if: | | |
${{ github.ref_name == github.event.repository.default_branch }} | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo 'Test4 ran' | |
test5: | |
name: Test5 | |
permissions: | |
contents: read | |
if: ${{ github.ref_name == github.event.repository.default_branch }} | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo 'Test5 ran' | |
test6: | |
name: Test6 | |
permissions: | |
contents: read | |
if: ${{ github.ref_name == 'main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- shell: bash | |
run: | | |
echo 'Test6 ran' | |