Merge pull request #62 from bento-platform/refact/fixed-mappings #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |