mirror of
https://github.com/sigmasternchen/gleam-community-maths
synced 2025-03-15 07:59:01 +00:00
update ci workflows
This commit is contained in:
parent
ad11b966a9
commit
24a959f014
2 changed files with 18 additions and 9 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
23
.github/workflows/test.yml
vendored
23
.github/workflows/test.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue