Github Workflows Run Strategy Matrix Sequentally
How to setup github action matrix to be run sequentally or series each job ?
Conclusing Just add below codes:
jobs: deploy: runs-on: ubuntu-latest strategy: # When set to true, GitHub cancels all in-progress jobs if any matrix job fails. fail-fast: true # The maximum number of jobs that can run simultaneously max-parallel: 1
jobs: deploy: runs-on: ubuntu-latest strategy: matrix: stage: ['development', 'integration', 'production'] os: [ "windows-latest", "macos-11", "ubuntu-latest" ] node-version: [ 14.x, 16.x, 18.x ] architecture: [ x86, x64 ] fail-fast: true max-parallel: 1 steps: - name: do some stuff uses: ... with: ...
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.