Skip to content

Merge pull request #95 from teknologi-umum/feat/analytic #259

Merge pull request #95 from teknologi-umum/feat/analytic

Merge pull request #95 from teknologi-umum/feat/analytic #259

Workflow file for this run

name: Check
on:
pull_request:
push:
branches:
- master
jobs:
scan:
name: Secret scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
extra_args: --debug --only-verified
ci-backend:
name: Backend
runs-on: ubuntu-latest
timeout-minutes: 20
container: golang:1-bookworm
defaults:
run:
working-directory: ./backend
services:
smtp:
image: marlonb/mailcrab:latest
ports:
- 1025:1025
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build
run: go build -buildvcs=false .
- name: Run test & coverage
run: go test -v -coverprofile=coverage.out -covermode=atomic ./...
env:
TZ: UTC
DATABASE_URL: postgres://postgres:password@db:5432/conf?sslmode=disable
SMTP_HOSTNAME: smtp
DB_HOST: db
DB_USER: postgres
DB_PASSWORD: password
DB_NAME: conf
- uses: codecov/codecov-action@v3
ci-frontend:
name: Frontend
runs-on: ubuntu-latest
timeout-minutes: 20
container: node:20.5.1-bookworm
defaults:
run:
working-directory: ./frontend
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build