-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: upgrade languages and libraries, move to GitHub actions
- Loading branch information
1 parent
b5c9604
commit 85d87e4
Showing
8 changed files
with
53 additions
and
40 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Test and Deploy | ||
on: | ||
push: | ||
release: | ||
types: [published] | ||
jobs: | ||
tests: | ||
services: | ||
db: | ||
image: postgres:15 | ||
ports: ["5432:5432"] | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
runs-on: ubuntu-22.04 | ||
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} | ||
env: | ||
MIX_ENV: test | ||
strategy: | ||
matrix: | ||
include: | ||
- otp: "24" | ||
elixir: "1.12" | ||
nodejs: "18.x" | ||
- otp: "26" | ||
elixir: "1.16" | ||
nodejs: "20.x" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: erlef/setup-beam@v1 | ||
with: | ||
otp-version: ${{matrix.otp}} | ||
elixir-version: ${{matrix.elixir}} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{matrix.nodejs}} | ||
- run: mix deps.get | ||
- run: mix compile | ||
- run: npm install --prefix=test/js | ||
- run: mix test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
erlang 21.1 | ||
elixir 1.9.1-otp-21 | ||
nodejs 12.9.0 | ||
erlang 26.1.2 | ||
elixir 1.16.0-otp-26 | ||
nodejs 20.1.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters