-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (57 loc) · 1.73 KB
/
on-pull-request.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
name: On Pull Request
on:
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-20.04
env:
TEST_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
MOMENTO_AUTH_TOKEN: ${{ secrets.ALPHA_TEST_AUTH_TOKEN }}
TEST_CACHE_NAME: elixir-integration-test-ci-${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: Verify README generation
uses: momentohq/standards-and-practices/github-actions/oss-readme-template@gh-actions-v2
with:
project_status: official
project_stability: beta
project_type: sdk
sdk_language: Elixir
dev_docs_slug: elixir
- name: Commitlint and Other Shared Build Steps
uses: momentohq/standards-and-practices/github-actions/shared-build@gh-actions-v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '25.3.2'
elixir-version: '1.14.5'
- name: Build and run tests
run: |
pushd src
mix deps.get
mix compile
mix format --check-formatted
mix dialyzer
mix test
popd
- name: Run integration tests
run: |
pushd src
mix test integration-test
popd
- name: Build and run examples
run: |
pushd examples
mix deps.get
mix compile
mix format --check-formatted
mix dialyzer
mix run basic.exs
mix run sorted_set.exs
mix run doc_examples/cheat_sheet.exs
mix run doc_examples/readme_example.exs
mix run doc_examples.exs
popd