summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/elixir.yml38
-rw-r--r--.github/workflows/tests.yml19
2 files changed, 19 insertions, 38 deletions
diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml
deleted file mode 100644
index e42307f..0000000
--- a/.github/workflows/elixir.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-name: Elixir CI
-
-on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
-
-jobs:
- build:
-
- name: Build and test
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3
-
- - name: Set up Elixir
- uses: erlef/setup-beam@v1
- with:
- elixir-version: '1.12.3'
- otp-version: '24'
-
- - name: Restore dependencies cache
- uses: actions/cache@v3
- with:
- path: deps
- key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
- restore-keys: ${{ runner.os }}-mix-
-
- - name: Install dependencies
- run: mix deps.get
-
- - name: Initialize services
- run: FARSIDE_TEST=1 FARSIDE_SERVICES_JSON=services-full.json mix run -e Farside.Instances.sync
-
- - name: Run tests
- run: FARSIDE_TEST=1 FARSIDE_SERVICES_JSON=services-full.json mix test --trace
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..e0bd2fe
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,19 @@
+on: [push, pull_request]
+name: Tests
+jobs:
+ test:
+ strategy:
+ matrix:
+ go-version: [1.21.x, 1.22.x, 1.23.x]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Install Go
+ uses: actions/setup-go@v2
+ with:
+ go-version: ${{ matrix.go-version }}
+ - name: Checkout code
+ uses: actions/checkout@v2
+ - name: Test
+ run: go test -v ./...
+