-
Notifications
You must be signed in to change notification settings - Fork 15
46 lines (40 loc) · 1.35 KB
/
test-linux.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
name: Install MetaCall on Linux Test
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
trigger-cli-build:
name: Trigger CLI Docker Build
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Trigger metacall/cli Build Workflow
uses: convictional/[email protected]
with:
owner: metacall
repo: cli
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: docker-hub.yml
wait_workflow: true
ref: master
install-local:
name: Install MetaCall via Default Installation (local)
runs-on: ubuntu-latest
if: always()
needs: trigger-cli-build
steps:
- uses: actions/checkout@v4
- name: Tests
run: ./test.sh
install-remote:
name: Install MetaCall via Default Installation (remote)
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
needs: trigger-cli-build
steps:
- uses: actions/checkout@v4
- run: echo "METACALL_INSTALL_CERTS=certificates_remote" >> $GITHUB_ENV
- name: Tests
run: ./test.sh