Skip to content

add CI, make tests runnable by external users #18

add CI, make tests runnable by external users

add CI, make tests runnable by external users #18

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
name: lint
runs-on: ubuntu-latest
if: github.repository == 'cortexclick/cortex-sdk'
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Check types
run: npm run lint
build:
name: build
runs-on: ubuntu-latest
if: github.repository == 'cortexclick/cortex-sdk'
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
build:

Check failure on line 49 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

You have an error in your yaml syntax on line 49
name: test
runs-on: ubuntu-latest
if: github.repository == 'cortexclick/cortex-sdk'
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test:ci