Bump webpack from 5.91.0 to 5.94.0 in /docs #302
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
# .github/workflows/rlui-test.yml | |
# Copyright 2023 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
name: RLUI | |
on: | |
pull_request: | |
branches: | |
- main | |
- staging | |
jobs: | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./radlab-ui/webapp | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: ./radlab-ui/webapp/package-lock.json | |
- name: Load .env file | |
uses: xom9ikk/[email protected] | |
with: | |
path: radlab-ui/webapp | |
mode: test | |
- name: Install Node dependencies | |
run: npm ci | |
- name: Test Cases | |
run: npm test | |
build: | |
name: NextJS Build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./radlab-ui/webapp | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
cache-dependency-path: ./radlab-ui/webapp/package-lock.json | |
- name: Load .env file | |
uses: xom9ikk/[email protected] | |
with: | |
path: radlab-ui/webapp | |
mode: test | |
- name: Install Node dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
env: | |
NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY: "my-api-key" | |
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN: "my-auth-domain" | |
NEXT_PUBLIC_FIREBASE_PROJECT_ID: "my-project-id" | |
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET: "my-storage-bucket" | |
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID: "my-messaging-sender-id" | |
NEXT_PUBLIC_FIREBASE_APP_ID: "my-firebase-app-id" | |
NEXT_PUBLIC_RAD_LAB_DOCS_SITE: "https://googlecloudplatform.github.io/rad-lab/" | |