- giving credit to original authoer #3
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: tests | |
on: | |
push: | |
branches: [ main, master ] | |
pull_request: | |
branches: [ main, master ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest", "macos-latest"] | |
steps: | |
- | |
uses: actions/checkout@v4.1.1 | |
- | |
uses: ./ | |
with: | |
macos: echo "Hi from macos" | |
linux: | | |
echo "Hi from linux" | |
echo "Hi from linux second line" | |
windows: echo "Hi from windows" | |
windowsShell: cmd | |
- | |
uses: ./ | |
with: | |
macos: echo "test2" | |
linux: echo "test2" | |
windows: echo "test2" | |
windowsShell: cmd | |
- | |
uses: carlkidcrypto-os-specific-runner@main | |
with: | |
macos: echo "Hi from macos" | |
linux: | | |
echo "Hi from linux" | |
echo "Hi from linux second line" | |
windows: echo "Hi from windows" | |
- | |
uses: carlkidcrypto-os-specific-runner@main | |
with: | |
macos: echo "test2" | |
linux: echo "test2" | |
windows: echo "test2" | |
windowsShell: cmd |