-
-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (59 loc) · 1.53 KB
/
tests.yml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Tests
on:
push:
branches: [main]
jobs:
Bot:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install Node Modules
run: npm install
- name: Check Formatting
run: npm run test
- name: TypeScript Validation
run: npm run build
API:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Elixir
run: |
wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb
sudo dpkg -i erlang-solutions_2.0_all.deb
rm erlang-solutions_2.0_all.deb
sudo apt-get update
sudo apt-get install -y esl-erlang elixir
- name: Install Hex Packages
run: |
cd api
mix local.hex --force
mix deps.get
mix local.rebar --force
- name: Compile API
run: |
touch .env
cd api
mix compile
Push:
if: needs.pr-check.outputs.number != 'null'
needs: [Bot, API]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: "tests-passed"
- name: Push to tests-passed
run: |
git config user.name github-actions
git config user.email [email protected]
git merge origin/main
git push