-
-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (28 loc) · 928 Bytes
/
on-pull-request.yml
File metadata and controls
38 lines (28 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Test Pull Request
on: pull_request
jobs:
build:
# commented out for now, because on windows linting fails with bun (same error as with older node versions on ubuntu)
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]
# runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Set up bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies ⏬
run: bun install
- name: Lint code 💄
run: bun run lint
- name: Test code ✅
run: bun test --coverage --coverage-reporter=lcov
- name: Build artifacts 🏗️
run: bun run build
- name: Publish to coveralls ⭐
# coverage/lcov.info was generated in the previous npm run build step
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}