Skip to content

Commit

Permalink
update ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
aslilac committed Dec 9, 2023
1 parent ad11b96 commit 24a959f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
otp-version: "26.1"
gleam-version: "0.32.4"

- uses: actions/setup-node@v3
with:
node-version: "20.x"

- run: |
version="v$(cat gleam.toml | grep -m 1 "version" | sed -r "s/version *= *\"([[:digit:].]+)\"/\1/")"
if [ "$version" != "${{ github.ref_name }}" ]; then
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,26 @@ on:
branches: ["**"]

concurrency:
group: main-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: erlef/[email protected]
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "0.30.5"
- uses: actions/[email protected]
otp-version: "26.1"
gleam-version: "0.32.4"

- uses: actions/setup-node@v3
with:
node-version: "16.18.1"
- run: gleam format --check src test
node-version: "20.x"

- run: gleam format --check

- run: gleam test --target erlang
- run: gleam test --target javascript
- run: gleam test --target javascript

0 comments on commit 24a959f

Please sign in to comment.