-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (32 loc) · 924 Bytes
/
ci.yml
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run build
deploy:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
strategy:
matrix:
service: [neogrok, zoekt]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo/fly.${{ matrix.service }}.toml --ignorefile demo/Dockerfile.${{ matrix.service }}.dockerignore