Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

lint-and-test.yml 884 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. name: Lint and test
  2. on:
  3. pull_request:
  4. push:
  5. branches:
  6. - main
  7. jobs:
  8. lint:
  9. runs-on: ubuntu-latest
  10. timeout-minutes: 10
  11. steps:
  12. - uses: actions/checkout@v3
  13. - uses: actions/setup-node@v3
  14. with:
  15. node-version: "18"
  16. cache: "npm"
  17. - run: |
  18. npm install ci
  19. - name: "Checking lint/format errors"
  20. run: |
  21. npm run lint
  22. - name: "Checking type errors"
  23. run: |
  24. npm run check
  25. test:
  26. runs-on: ubuntu-latest
  27. timeout-minutes: 10
  28. services:
  29. mongodb:
  30. image: mongo:6.0.5
  31. ports:
  32. - 27017:27017
  33. steps:
  34. - uses: actions/checkout@v3
  35. - uses: actions/setup-node@v3
  36. with:
  37. node-version: "18"
  38. cache: "npm"
  39. - run: |
  40. npm ci
  41. - name: "Tests"
  42. run: |
  43. npm run test
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...