From 24a959f014c187e482e502f3d5afa21acf314435 Mon Sep 17 00:00:00 2001 From: McKayla Washburn Date: Fri, 8 Dec 2023 17:16:46 -0700 Subject: [PATCH] update ci workflows --- .github/workflows/release.yml | 4 ++++ .github/workflows/test.yml | 23 ++++++++++++++--------- 2 files changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d2a0aa..f1d4fef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 00121a5..4982bb3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 \ No newline at end of file + - run: gleam test --target javascript