update ci workflows

This commit is contained in:
McKayla Washburn 2023-12-08 17:16:46 -07:00
parent ad11b966a9
commit 24a959f014
No known key found for this signature in database
2 changed files with 18 additions and 9 deletions

View file

@ -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

View file

@ -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/checkout@v3.1.0
- uses: erlef/setup-beam@v1.16.0
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
gleam-version: "0.30.5"
- uses: actions/setup-node@v3.5.1
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