リプライ機能を追加した #61
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: Continuous Integration Pipeline | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_node_18: | |
runs-on: ubuntu-latest | |
environment: | |
name: develop | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- name: Run npm audit | |
run: npm audit --production --audit-level=moderate | |
- name: Install dependencies | |
run: npm ci | |
- name: Run Jest unit tests | |
env: | |
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY }} | |
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
TEST_FIREBASE_API_KEY: ${{ secrets.TEST_FIREBASE_API_KEY }} | |
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
run: npm run test | |
- name: Run Jest infrastructure tests | |
env: | |
SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY }} | |
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
TEST_FIREBASE_API_KEY: ${{ secrets.TEST_FIREBASE_API_KEY }} | |
TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
run: npm run test:infra | |
# build_node_20: | |
# needs: build_node_18 | |
# runs-on: ubuntu-latest | |
# environment: | |
# name: develop | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Use Node.js 20.x | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: 20.x | |
# cache: 'npm' | |
# - name: Run npm audit | |
# run: npm audit --production --audit-level=moderate | |
# - name: Install dependencies | |
# run: npm ci | |
# - name: Run Jest unit tests | |
# env: | |
# SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY }} | |
# FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
# DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
# TEST_FIREBASE_API_KEY: ${{ secrets.TEST_FIREBASE_API_KEY }} | |
# TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
# run: npm run test | |
# - name: Run Jest infrastructure tests | |
# env: | |
# SESSION_SECRET_KEY: ${{ secrets.SESSION_SECRET_KEY }} | |
# FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
# DATABASE_URL: ${{ secrets.DATABASE_URL }} | |
# TEST_FIREBASE_API_KEY: ${{ secrets.TEST_FIREBASE_API_KEY }} | |
# TEST_DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }} | |
# run: npm run test:infra |