Adding QA test config #89
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: PR | |
on: pull_request | |
jobs: | |
build: | |
# Prevent running this on forks | |
if: github.repository_owner == 'flybywiresim' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v2 | |
- name: Run npm install | |
run: | | |
npm ci | |
- name: Build config | |
run: | | |
npm run build -- pr-${{ github.event.number }} | |
- name: Upload to Bunny CDN | |
env: | |
BUNNY_BUCKET_PASSWORD: ${{ secrets.BUNNY_BUCKET_PASSWORD }} | |
BUNNY_SECRET_TOKEN: ${{ secrets.BUNNY_SECRET_TOKEN }} | |
BUNNY_BUCKET_DESTINATION: installer/config | |
run: | | |
./scripts/cdn.sh $BUNNY_BUCKET_DESTINATION ./dist |