2021-08-18 10:18:09 +03:00
|
|
|
name: build-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["master"]
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-05 09:23:03 +03:00
|
|
|
uses: actions/checkout@v4
|
2021-08-18 10:18:09 +03:00
|
|
|
- name: Setup node
|
2024-02-02 17:03:17 +03:00
|
|
|
uses: actions/setup-node@v4
|
2021-08-18 10:18:09 +03:00
|
|
|
with:
|
2023-10-04 10:23:43 +03:00
|
|
|
node-version: "18"
|
2021-08-18 10:18:09 +03:00
|
|
|
- name: Install dependencies
|
2024-02-07 19:36:36 +03:00
|
|
|
run: yarn --immutable
|
2024-04-22 16:36:13 +03:00
|
|
|
- name: Run checks
|
|
|
|
run: yarn lint
|
2021-08-18 10:18:09 +03:00
|
|
|
- name: Run tests
|
|
|
|
run: yarn test
|