Test service (on latest dachs) #1
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: DaCHS Resource Test | |
run-name: Test service (on latest dachs) | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
Validate-and-Import: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: List repository content | |
run: du -sh ${{ github.workspace }}/* | |
- name: Pull DaCHS image (latest) | |
run: docker pull gavodachs/dachs:latest | |
- name: Run container | |
run: | | |
docker run --name dachs_container -v "${{ github.workspace }}:/var/gavo/inputs/gmap" -dt gavodachs/dachs | |
- name: Check running container | |
run: | | |
docker ps | grep -q dachs_container | |
- name: Start DaCHS | |
run: | | |
docker exec dachs_container /dachs.sh start | |
- name: Validate RD | |
run: | | |
docker exec dachs_container dachs val gmap/q | |
- name: Import RD (sample) | |
run: | | |
docker exec dachs_container dachs imp -M 100 gmap/q | |