fromprep yaml needed a file_type #25
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: run with fair cli | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: ${{ github.workspace }} # location for the settings.xml file | |
- name: Build with Gradle | |
run: gradle build | |
- name: Install local registry | |
run: | | |
/bin/bash -c "$(curl -fsSL https://data.scrc.uk/static/localregistry.sh)" | |
- uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: install fair-cli from pip | |
run: pip install fair-cli | |
- name: run javaSimpleModel with fair cli | |
run: | | |
fair init --ci --local | |
fair pull --local src/main/resources/seirs-config.yaml | |
fair run --local src/main/resources/seirs-config.yaml | |