From a163ea19bf75af57ce9919a6b75cfa6b77fe6d40 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 15 Jun 2021 13:58:00 -0500 Subject: [PATCH 1/5] Create matrix.yml --- .github/workflows/matrix.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/matrix.yml diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml new file mode 100644 index 0000000..c0825f9 --- /dev/null +++ b/.github/workflows/matrix.yml @@ -0,0 +1,22 @@ +# This is a basic workflow to help you get started with Actions +name: Matrix Build + +# Set the job to run manually +on: + push: + branches-ignore: main + + jobs: + job1: + runs-on: ubuntu-latest + strategy: + # max-parallel: 2 + matrix: + run: ['run1', 'run2', 'run3'] + steps: + - name: Matrix job ${{ matrix.run }} + run: | + echo Run ${{ matrix.run }} + date + sleep 15 + date From 2006add8268bc1b2824efeddb4098958999715b8 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 15 Jun 2021 13:58:55 -0500 Subject: [PATCH 2/5] Update matrix.yml --- .github/workflows/matrix.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index c0825f9..79bfbd5 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -6,17 +6,17 @@ on: push: branches-ignore: main - jobs: - job1: - runs-on: ubuntu-latest - strategy: - # max-parallel: 2 - matrix: - run: ['run1', 'run2', 'run3'] - steps: - - name: Matrix job ${{ matrix.run }} - run: | - echo Run ${{ matrix.run }} - date - sleep 15 - date +jobs: + job1: + runs-on: ubuntu-latest + strategy: + # max-parallel: 2 + matrix: + run: ['run1', 'run2', 'run3'] + steps: + - name: Matrix job ${{ matrix.run }} + run: | + echo Run ${{ matrix.run }} + date + sleep 15 + date From 8eb4cf5467b60edaac42fd0b511c01d1cda84e3d Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 15 Jun 2021 14:01:12 -0500 Subject: [PATCH 3/5] Update matrix.yml --- .github/workflows/matrix.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 79bfbd5..3593116 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -7,16 +7,17 @@ on: branches-ignore: main jobs: - job1: + parallel-test: runs-on: ubuntu-latest strategy: # max-parallel: 2 matrix: - run: ['run1', 'run2', 'run3'] + tests: ['test1', 'test2', 'test3'] steps: - - name: Matrix job ${{ matrix.run }} + - name: Matrix job ${{ matrix.tests }} run: | - echo Run ${{ matrix.run }} + echo "Running test: ${{ matrix.tests }}" date + echo "Taking a quick nap..." sleep 15 date From 43754b43ddfded3fd1d1192a3efa5f21356b928d Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 15 Jun 2021 14:14:18 -0500 Subject: [PATCH 4/5] Update matrix.yml --- .github/workflows/matrix.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 3593116..44ffa64 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -8,11 +8,12 @@ on: jobs: parallel-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: # max-parallel: 2 matrix: tests: ['test1', 'test2', 'test3'] + os: [macos-latest, ubuntu-latest, windows-latest] steps: - name: Matrix job ${{ matrix.tests }} run: | From e5cf0d588fb06206c22d8c869da2cc5d6d1242f6 Mon Sep 17 00:00:00 2001 From: Lukas Gravley Date: Tue, 15 Jun 2021 14:14:53 -0500 Subject: [PATCH 5/5] Update matrix.yml --- .github/workflows/matrix.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/matrix.yml b/.github/workflows/matrix.yml index 44ffa64..444b567 100644 --- a/.github/workflows/matrix.yml +++ b/.github/workflows/matrix.yml @@ -13,7 +13,7 @@ jobs: # max-parallel: 2 matrix: tests: ['test1', 'test2', 'test3'] - os: [macos-latest, ubuntu-latest, windows-latest] + os: [macos-latest, ubuntu-latest, windows-latest] steps: - name: Matrix job ${{ matrix.tests }} run: |