Merge pull request #714 from italia/feature/improvements #288
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: CD (commit on master) | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '*.md' | |
jobs: | |
deploy: | |
runs-on: 'ubuntu-20.04' | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
check-latest: true | |
cache: yarn | |
- uses: robinraju/[email protected] | |
with: | |
repository: italia/api-oas-checker-rules | |
fileName: '*' | |
out-file-path: rulesets/ | |
latest: true | |
- name: Unzip files | |
run: | | |
for file in rulesets/*.zip; do | |
unzip -o "$file" -d rulesets/ | |
done | |
- name: Build ui, test ui and deploy | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/italia/api-oas-checker.git | |
make deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |