Skip to content

fix-doi-issues

fix-doi-issues #12

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: test
on:
push:
branches: [ "main", "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
permissions:
contents: read # for actions/checkout to fetch code
name: Build
runs-on: "ubuntu-20.04"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build an image from Dockerfile
run: |
docker build -f Dockerfile -t liquibase/liquibase:${{ github.sha }} .
- name: Build an image from Dockerfile (alpine)
run: |
docker build -f Dockerfile.alpine -t liquibase/liquibase-alpine:${{ github.sha }} .
- name: Start H2 test instance
run: |
docker run --name liquibase -d -p 9090:9090 -v $(pwd)/.github/test:/liquibase/changelog liquibase/liquibase:${{ github.sha }} init start-h2
- name: Run Liquibase version
run: |
docker exec -it liquibase liquibase --version
- name: Run Liquibase update
run: |
docker exec -it liquibase liquibase update --defaultsFile=/liquibase/changelog/liquibase.properties --changeLogFile=/liquibase/changelog/example-changelog.xml