Skip to content

Commit

Permalink
Tweak CI
Browse files Browse the repository at this point in the history
  • Loading branch information
henriqueinonhe committed Nov 26, 2023
1 parent 7756aa7 commit 54a802c
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,8 @@ concurrency:
cancel-in-progress: true

jobs:
e2e:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
get-node-version:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -28,10 +24,25 @@ jobs:
# breaks the github action that consumes this data
run: echo node-version=$(cat package.json | jq ".engines.node" | sed 's/^"\(.*\)"$/\1/') >> $GITHUB_OUTPUT

outputs:
node-version: ${{ steps.get-node-version.outputs.node-version }}

e2e:
needs:
- get-node-version
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.get-node-version.outputs.node-version }}
node-version: ${{ needs.get-node-version.outputs.node-version }}

- name: Get Node Modules Cache Key
id: get-node-modules-cache-key
Expand Down

0 comments on commit 54a802c

Please sign in to comment.