File size: 1,116 Bytes
da1e5da 4eb33c8 da1e5da d9a878f 4eb33c8 d9a878f 06db4b1 |
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 50 51 52 53 54 55 56 57 |
name: Lint and test
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
- run: |
npm install ci
- name: "Checking lint/format errors"
run: |
npm run lint
- name: "Checking type errors"
run: |
npm run check
test:
runs-on: ubuntu-latest
timeout-minutes: 10
services:
mongodb:
image: mongo:6.0.5
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
- run: |
npm ci
- name: "Tests"
run: |
npm run test
build-check:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build --secret id=DOTENV_LOCAL,src=conf/.env.ci -t chat-ui:latest .
|