Skip to content

Merge pull request #5 from sm0483/dependabot/npm_and_yarn/babel/trave… #20

Merge pull request #5 from sm0483/dependabot/npm_and_yarn/babel/trave…

Merge pull request #5 from sm0483/dependabot/npm_and_yarn/babel/trave… #20

Workflow file for this run

name: Node.js CI
on:
push:
branches: ['main']
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
GOOGLE_REDIRECT_URI: ${{ secrets.GOOGLE_REDIRECT_URI }}
GOOGLE_USER_INFO_URL: ${{ secrets.GOOGLE_USER_INFO_URL }}
CLIENT_URL: ${{ secrets.CLIENT_URL }}
REFRESH_TOKEN_KEY: ${{ secrets.REFRESH_TOKEN_KEY }}
ACCESS_TOKEN_KEY: ${{ secrets.ACCESS_TOKEN_KEY }}
REFRESH_EXPIRES: ${{ secrets.REFRESH_EXPIRES }}
ACCESS_EXPIRES: ${{ secrets.ACCESS_EXPIRES }}
COOKIE_SECRET: ${{ secrets.COOKIE_SECRET }}
PORT: ${{ secrets.PORT }}
SERVER_DOMAIN: ${{ secrets.SERVER_DOMAIN }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
S3_BUCKET_REGION: ${{ secrets.S3_BUCKET_REGION }}
NODE_ENV: ${{ secrets.NODE_ENV }}
jobs:
build:
runs-on: ubuntu-latest
environment: DEV
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test