feat: add linting workflow for code quality checks feat: add testing workflow for unit tests and coverage reporting chore: update .gitignore to include additional files Co-authored-by: Arthur Abeilice <afa7789@gmail.com> Reviewed-on: https://git.p2pix.co/doiim/p2pix-front-end/pulls/12 Co-authored-by: arthur <abeilice@kosmos.org> Co-committed-by: arthur <abeilice@kosmos.org>
29 lines
531 B
YAML
29 lines
531 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
pull_request:
|
|
branches: [main, develop]
|
|
|
|
concurrency:
|
|
group: tests-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
unit:
|
|
runs-on: ubuntu-latest
|
|
container: oven/bun:1-alpine
|
|
steps:
|
|
- name: Install required tools
|
|
run: apk add --no-cache git
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Unit tests (vitest)
|
|
run: bunx vitest run --passWithNoTests
|
|
|