-
Notifications
You must be signed in to change notification settings - Fork 1
96 lines (80 loc) · 2.25 KB
/
integration.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Integration CI
on:
pull_request:
branches:
- main
push:
branches:
- main
merge_group:
types:
- checks_requested
workflow_dispatch:
jobs:
integration-ci:
name: Integration Testing
strategy:
fail-fast: true
matrix:
os:
- ubuntu-22.04
node:
- 16
pnpm:
- 8
ruby:
- '3.1'
elixir:
- '1.14'
otp:
- '25'
runs-on: ${{ matrix.os }}
steps:
# Check out codde
- uses: actions/checkout@v4
# Typescript Setup
- uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm }}
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
cache-dependency-path: ts/pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
working-directory: ./ts
# Ruby Setup
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
working-directory: ./ruby
# Elixir Setup
- uses: erlef/setup-elixir@v1
id: install
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- run: mix 'do' deps.get, deps.compile, compile
working-directory: ./elixir
- run: mkdir -p suite
# Generate
- name: Generate Typescript Integration Suite
run: pnpm cli:generate ../suite
working-directory: ./ts
- name: Generate Ruby Integration Suite
run: bundle exec ruby -S bin/app-identity-suite-ruby generate ../suite
working-directory: ./ruby
- name: Generate Elixir Integration Suite
run: mix app_identity generate ../suite
working-directory: ./elixir
# Run
- name: Run Typescript Verification
run: pnpm cli:run ../suite | ../integration/tapview
working-directory: ./ts
- name: Run Ruby Verification
run: bundle exec ruby -S bin/app-identity-suite-ruby run ../suite | ../integration/tapview
working-directory: ./ruby
- name: Run Elixir Integration Suite
run: mix app_identity run ../suite | ../integration/tapview
working-directory: ./elixir