Add MIT license (#85) #205
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |