Skip to content

Merge pull request #6 from loreum-org/dependabot/github_actions/actio… #50

Merge pull request #6 from loreum-org/dependabot/github_actions/actio…

Merge pull request #6 from loreum-org/dependabot/github_actions/actio… #50

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
tests:
name: Matchstick
runs-on: ubuntu-latest
container: node:18
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Run codegen
run: yarn codegen
- name: Run build
run: yarn build:local
- name: Run tests
run: yarn test