Skip to content

Add MIT license (#85) #205

Add MIT license (#85)

Add MIT license (#85) #205

Workflow file for this run

name: Lint and Test
on: push
jobs:
build:
runs-on: ubuntu-latest
name: "Lint and Test"
steps:
- name: Checkout Code
id: checkout
uses: actions/checkout@v2
- name: Install Dependencies
id: install
run: npm ci
- name: Run Linter
id: lint
run: npm run lint
- name: Run Tests
id: test
run: npm run test
env:
COHERE_API_KEY: ${{ secrets.COHERE_API_KEY }}
- name: Build
id: build
run: npm run build
- name: Check that ./dist is up to date
run: |
if [ -z "$(git status --porcelain)" ]; then
echo "./dist is up to date!"
else
echo "./dist is out of date with source code. Run npm run build and check in the changes."
exit 1
fi