This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
chore(deps): update dependency node-hid to v0.7.9 #366
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: Workflow | |
on: | |
# Run on pushes to main.. | |
push: | |
branches: | |
- main | |
# ..and any pull request. | |
pull_request: | |
# Allow manual triggers (required to refresh secrets/env vars) | |
workflow_dispatch: | |
# This serializes deploys from main. | |
concurrency: | |
group: env-${{ github.ref }} | |
jobs: | |
check-for-sh: | |
name: Check for .sh | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: "echo '*** Do not write .sh scripts! ***'; ! find . -type f -name '*.sh' | grep ." | |
unit: | |
name: unit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
check-latest: true | |
- run: yarn | |
- run: yarn build | |
- run: yarn test | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v2 | |
with: | |
path: coverage/lcov-report | |
- name: 'Upload coverage to Codecov' | |
uses: codecov/codecov-action@v2 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
check-latest: true | |
- run: yarn | |
- run: yarn lint | |
end-to-end: | |
name: end-to-end | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
check-latest: true | |
- run: yarn | |
- run: yarn build | |
- run: yarn e2e | |
deploy-alfajores: | |
name: Deploy alfajores | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- unit | |
- lint | |
- end-to-end | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
service_account_key: ${{ secrets.ALFAJORES_SERVICE_ACCOUNT_KEY }} | |
export_default_credentials: true | |
- name: Deploy App | |
run: gcloud app deploy app.alfajores.yaml --project=celo-mobile-alfajores --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version | |
- name: Cleanup Versions | |
run: yarn cleanup-versions --service indexer --num-versions 5 | |
deploy-mainnet: | |
name: Deploy mainnet | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- unit | |
- lint | |
- end-to-end | |
- deploy-alfajores | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: google-github-actions/setup-gcloud@v0 | |
with: | |
service_account_key: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }} | |
export_default_credentials: true | |
- name: Deploy App | |
run: gcloud app deploy app.mainnet.yaml --project=celo-mobile-mainnet --version="git-$(git rev-parse --short HEAD)" --quiet --promote --stop-previous-version | |
- name: Cleanup Versions | |
run: yarn cleanup-versions --service indexer --num-versions 5 |