mirror of
https://github.com/bahdotsh/wrkflw.git
synced 2026-02-24 11:59:49 +01:00
- Move test workflows to tests/workflows/ - Move GitLab CI fixtures to tests/fixtures/gitlab-ci/ - Move test scripts to tests/scripts/ - Move Podman testing docs to tests/ - Update paths in test scripts and documentation - Delete MANUAL_TEST_CHECKLIST.md as requested - Update tests/README.md to reflect new organization
44 lines
1.0 KiB
YAML
44 lines
1.0 KiB
YAML
name: Matrix Example
|
|
|
|
triggers:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
env:
|
|
GLOBAL_VAR: "This applies to all jobs"
|
|
|
|
jobs:
|
|
test:
|
|
name: "Test"
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
|
node-version: [14, 16, 18]
|
|
include:
|
|
- os: ubuntu-latest
|
|
node-version: 20
|
|
experimental: true
|
|
exclude:
|
|
- os: windows-latest
|
|
node-version: 14
|
|
fail-fast: false
|
|
max-parallel: 2
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Show configuration
|
|
run: |
|
|
echo "Running on: ${{ matrix.os }}"
|
|
echo "Node version: ${{ matrix.node-version }}"
|
|
if [ "${{ matrix.experimental }}" = "true" ]; then
|
|
echo "This is an experimental configuration"
|
|
fi |