Update canisters post release #19218
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
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- master | |
name: Frontend linting, type check & unit tests | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
install-and-test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore dependencies from cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
restore-keys: npm- | |
- name: Restore Turborepo files from cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: frontend/.turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20.17.0" | |
- name: Build frontend | |
run: npm run build:ci | |
env: | |
NODE_ENV: ci | |
USERGEEK_APIKEY: DUMMY_USERGEEK_APIKEY | |
ROLLBAR_ACCESS_TOKEN: DUMMY_ROLLBAR_ACCESS_TOKEN | |
OPENCHAT_WEBSITE_VERSION: 1.0.0 | |
METERED_APIKEY: DUMMY_METERED_APIKEY | |
- name: Save dependencies to cache | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: actions/cache/save@v3 | |
with: | |
path: ~/.npm | |
key: npm-${{ hashFiles('package-lock.json') }} | |
- name: Save Turborepo files to cache | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: actions/cache/save@v3 | |
with: | |
path: frontend/.turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} |