-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.15 KB
/
api.test.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
name: Test gohan-api
on:
push:
branches:
- "**" # TEMP
pull_request:
branches:
- "features/**" # temp
jobs:
build-test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Gather default environment variables
id: envx
run: |
cp ./etc/example.env .env
source .env
- name: Load environment variables from .env file
uses: xom9ikk/dotenv@v2
# - name: Run Bento build action
# uses: bento-platform/[email protected]
# with:
# context: "{{defaultContext}}:src/api"
# build-args: |
# BASE_IMAGE=${{ env.GOHAN_API_BASE_IMAGE }}
# registry: ghcr.io
# registry-username: ${{ github.actor }}
# registry-password: ${{ secrets.GITHUB_TOKEN }}
# image-name: ghcr.io/bento-platform/gohan-api
# development-dockerfile: Dockerfile
# dockerfile: Dockerfile
- name: API Test
run: |
sudo apt-get install -y tabix
make test-api