Skip to content

chore: update gitHead in package.json to reflect latest commit #1106

chore: update gitHead in package.json to reflect latest commit

chore: update gitHead in package.json to reflect latest commit #1106

Workflow file for this run

name: tests
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches: ['**']
workflow_dispatch:
permissions:
contents: read
pull-requests: write
statuses: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
name: Lint & Typecheck
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: bun run lint
- name: Commitlint
if: github.event_name == 'pull_request'
run: bunx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Typecheck
run: bun run ts
tests:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- runtime: bun
version: latest
- runtime: node
version: lts/*
- runtime: node
version: latest
name: Test (${{ matrix.runtime }} ${{ matrix.version }})
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Node.js
if: matrix.runtime == 'node'
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
- name: Install OS dependencies
run: |
sudo apt-get update
sudo apt-get -y install libkrb5-dev
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Start services
run: docker compose up -d --wait
- name: Run Tests
run: |
if [ "${{ matrix.runtime }}" = "node" ]; then
npm test
else
bun run test
fi
- name: Submit coverage
if: matrix.runtime == 'node' && matrix.version == 'lts/*'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: ./coverage/lcov.info