mirror of
https://github.com/status-im/sn-api.git
synced 2026-08-31 01:31:07 +00:00
* explicitly mark required /auth request properties * make workflows run on merge * add global position to Karma object * typo fix * added more fields to ecosystem app response
66 lines
1.2 KiB
YAML
66 lines
1.2 KiB
YAML
name: PR Tests
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
dependencies:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: node:22
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [22.x]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v4
|
|
id: yarn-cache
|
|
with:
|
|
path: node_modules
|
|
key: node_modules-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install corepack
|
|
run: npm install -g corepack
|
|
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
needs: dependencies
|
|
|
|
container:
|
|
image: node:22
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Load node modules
|
|
uses: actions/cache@v4
|
|
id: yarn-cache
|
|
with:
|
|
path: node_modules
|
|
key: node_modules-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- name: Install corepack
|
|
run: npm install -g corepack
|
|
|
|
- name: Code passes lint check
|
|
run: yarn lint
|