Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from mistralai/bam4d/tests
Browse files Browse the repository at this point in the history
Bam4d/tests
  • Loading branch information
Bam4d authored Dec 22, 2023
2 parents 14228e4 + 20e48f9 commit 1c619d9
Show file tree
Hide file tree
Showing 7 changed files with 4,142 additions and 485 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ on:

jobs:

lint:
lint_and_test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18, 20]

steps:
# Checkout the repository
- name: Checkout
Expand All @@ -27,20 +31,25 @@ jobs:
- name: set node version
uses: actions/setup-node@v4
with:
node-version: 18
node-version: ${{ matrix.node-version }}

# Install Build stuff
- name: Install Dependencies
run: |
npm install
# Ruff
# Eslint
- name: ESlint check
run: |
./node_modules/.bin/eslint .
npm run lint
# Run tests
- name: Run tests
run: |
npm run test
publish:
needs: lint
needs: lint_and_test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')

Expand Down
5 changes: 0 additions & 5 deletions examples/chat-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"scripts": {
"start": "react-scripts start"
},
// "eslintConfig": {
// "extends": [
// "react-app"
// ]
// },
"browserslist": {
"production": [
">0.2%",
Expand Down
Loading

0 comments on commit 1c619d9

Please sign in to comment.