Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 9 additions & 20 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: lts/*

# Re-use node_modules between runs until yarn.lock changes.
- name: Cache node_modules
id: internal-cache-node_modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: internal-node_modules-ubuntu-latest.x-${{ hashFiles('yarn.lock') }}
Expand All @@ -32,7 +32,7 @@ jobs:
# review/elm.json changes. The Elm compiler saves downloaded Elm packages
# to ~/.elm, and elm-tooling saves downloaded tool executables there.
- name: Cache ~/.elm
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/.elm
key: elm-${{ hashFiles('elm.json', 'elm-tooling.json', 'review/elm.json') }}
Expand Down Expand Up @@ -70,17 +70,17 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: lts/*

# Re-use node_modules between runs until yarn.lock changes.
- name: Cache node_modules
id: internal-cache-node_modules
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: node_modules
key: internal-node_modules-ubuntu-latest.x-${{ hashFiles('yarn.lock') }}
Expand All @@ -89,7 +89,7 @@ jobs:
# review/elm.json changes. The Elm compiler saves downloaded Elm packages
# to ~/.elm, and elm-tooling saves downloaded tool executables there.
- name: Cache ~/.elm
uses: actions/cache@v3
uses: actions/cache@v5
with:
path: ~/.elm
key: elm-${{ hashFiles('elm.json', 'elm-tooling.json', 'review/elm.json') }}
Expand All @@ -115,18 +115,7 @@ jobs:
- name: elm-tooling install
run: npx --no-install elm-tooling install

- name: Check if package needs to be published
uses: dillonkearns/elm-publish-action@v1
id: publish
- uses: dillonkearns/elm-publish-action@v2
with:
dry-run: true
path-to-elm: ./node_modules/.bin/elm

# Runs a single command using the runners shell
- name: Elm Publish
if: steps.publish.outputs.is-publishable == 'true'
uses: dillonkearns/elm-publish-action@v1
with:
# Token provided by GitHub
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-elm: ./node_modules/.bin/elm