-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.15 KB
/
elixir.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Elixir CI
on:
push:
branches: [ main ]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- name: Setup Environment
run: |
sudo apt-get update
sudo apt-get install -y curl g++-14-riscv64-linux-gnu git cmake mold software-properties-common
sudo add-apt-repository ppa:rabbitmq/rabbitmq-erlang
sudo apt update
sudo apt install -y elixir erlang-dev erlang-xmerl
- name: Install Rust
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
echo "/root/.cargo/bin" >> $GITHUB_PATH
rustup default nightly
rustup target add riscv64gc-unknown-linux-gnu
- uses: ikalnytskyi/action-setup-postgres@v6
with:
username: cicd
password: web_compiler
database: web_compiler_dev
port: 34837
- name: Install Dependencies
run: |
mix local.hex --force
mix local.rebar --force
mix deps.get
- name: Run Tests
run: mix test