2021-06-08 10:19:16 +03:00
|
|
|
name: test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-05 10:07:53 +03:00
|
|
|
- uses: actions/checkout@v4
|
2023-10-24 07:55:12 +03:00
|
|
|
- uses: actions/setup-node@v4
|
2021-06-08 10:19:16 +03:00
|
|
|
with:
|
2024-06-12 12:04:19 +03:00
|
|
|
node-version: '18'
|
2021-06-08 10:19:16 +03:00
|
|
|
|
|
|
|
- name: Set up cache
|
2024-01-18 10:29:48 +03:00
|
|
|
uses: actions/cache@v4
|
2021-06-08 10:19:16 +03:00
|
|
|
with:
|
|
|
|
path: node_modules
|
|
|
|
key: env-${{ hashFiles('yarn.lock') }}
|
|
|
|
|
|
|
|
- name: "Install deps"
|
|
|
|
run: yarn install
|
|
|
|
|
|
|
|
- name: "Test"
|
|
|
|
run: yarn test
|