-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (50 loc) · 1.61 KB
/
tastings.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
name: Tastings CI
on:
push:
branches:
- "main"
- "v*.*.*"
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- run: mv mix.exs mix.exs.ignore
- uses: erlef/setup-beam@v1
with:
otp-version: "24.2"
elixir-version: "1.13.1"
gleam-version: "0.19.0"
- run: mix archive.install hex mix_gleam --force
- run: mv mix.exs.ignore mix.exs
- run: mix deps.get
- uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- run: gleam format --check src test
- run: mix gleam.test
- run: mix test
# deploy:
# needs: build # Will only run if the test job succeeds
# if: github.ref == 'refs/heads/main' # Only run this job if it is on the main branch
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# ref: main # Check out main instead of the latest commit
# fetch-depth: 0 # Checkout the whole branch
# - uses: actions/setup-python@v2
# with:
# python-version: 3.8.1
# - uses: mhanberg/[email protected]
# with:
# GIGALIXIR_USERNAME: ${{ secrets.GIGALIXIR_USERNAME }}
# GIGALIXIR_PASSWORD: ${{ secrets.GIGALIXIR_PASSWORD }}
# SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
# GIGALIXIR_APP: tastings # Feel free to also put this in your secrets
# MIGRATIONS: false # defaults to true