fix-doi-issues #12
Workflow file for this run
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
# 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 |