Skip to content

Commit

Permalink
Install workflow deps before linting in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphenized committed Jun 29, 2023
1 parent d624a4b commit 374c7e8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn install --frozen-lockfile
workdir: .github/workflows/cron
- run: yarn lint
detect-if-flag-changed:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/cron/pledge-sync.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
/* eslint-disable no-console, no-await-in-loop, import/no-unresolved */
/* eslint-disable no-console */ // need logging
/* eslint-disable no-await-in-loop */ // need to process items in sequence
import admin from "firebase-admin"
import fetch from "node-fetch"

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sync-pledge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
- run: yarn install --frozen-lockfile
working-directory: .github/workflows/cron
- name: Sync pledge addresses
run: node ./.github/workflows/cron/pledge-sync.js
run: node pledge-sync.js
working-directory: .github/workflows/cron
env:
GALXE_ACCESS_TOKEN: ${{ secrets.GALXE_ACCESS_TOKEN }}
FIRESTORE_AUTH: ${{ secrets.FIRESTORE_AUTH }}
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ dist
# Ignore weblate json translation formatting
ui/_locales/**/*.json
!.github
ci/cache
ci/cache
.vscode
size-plugin.json

0 comments on commit 374c7e8

Please sign in to comment.