Fixing test error #63
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
name: Build & Upload | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Checks & Build Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v3 | |
- name: Node.js setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: 📦 Install dependencies | |
run: yarn install | |
- name: Karma Test | |
run: yarn test | |
- name: 💨 Lint check | |
run: yarn lint | |
- name: 💅 Prettier check | |
run: yarn prettier:check | |
- name: 🏗️ Build app | |
run: yarn build --prod | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
deploy: | |
name: OneSky Upload | |
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Repository checkout | |
uses: actions/checkout@v3 | |
- name: Node.js setup | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: 📦 Install dependencies | |
run: yarn install | |
- name: Upload to OneSky | |
run: yarn onesky:upload | |
env: | |
ONESKY_API_KEY: ${{ secrets.ONESKY_API_KEY }} | |
ONESKY_SECRET_KEY: ${{ secrets.ONESKY_SECRET_KEY }} |