Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

build

build #128

Workflow file for this run

name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 7 * * 5'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:3.6
ports:
- 27017:27017
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
- name: Install dependencies
run: npm install
- name: Compile typescript
run: npm run tsc
- name: Run unit tests
run: npm test
- name: Ensure no change
run: |
echo "Checking for uncommitted changes under $(pwd)"
if [ -n "$(git status --porcelain)" ]; then
echo "Detected changes or untracked files:"
git diff --color
echo "Untracked files:"
git ls-files --others --exclude-standard
exit 1
fi
- name: Run Stoat Action
uses: stoat-dev/stoat-action@v0
if: always()