-
Notifications
You must be signed in to change notification settings - Fork 13
78 lines (77 loc) · 2.53 KB
/
Copy pathci.yaml
File metadata and controls
78 lines (77 loc) · 2.53 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Actions
on:
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
cache: npm
- run: |
npm install
npm run lint
npx commitlint --last --verbose
env:
NODE_ENV: 'test'
test:
name: Test
runs-on: ubuntu-latest
env:
WARP_PORTS: ''
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version-file: .nvmrc
cache: npm
- name: Verify
env:
CI: true
TWITTER_KEY: ${{ secrets.TWITTER_KEY }}
TWITTER_SECRET: ${{ secrets.TWITTER_SECRET }}
TWITTER_TIMEOUT: ${{ secrets.TWITTER_TIMEOUT }}
TWITTER_BEARER_TOKEN: ${{ secrets.TWITTER_BEARER_TOKEN }}
WFINFO_FILTERED_ITEMS: ${{ secrets.WFINFO_FILTERED_ITEMS }}
WFINFO_PRICES: ${{ secrets.WFINFO_PRICES }}
NODE_ENV: 'test'
run: |
.github/scripts/ci-warp.sh run '
npm install
npm run build
npm run docs:lint
npm test
'
- name: Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
docker-image:
runs-on: ubuntu-latest
env:
WARP_HOST_PORT: '18080'
WARP_PORTS: '18080:3001'
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up QEMU
uses: docker/setup-qemu-action@06116385d9baf250c9f4dcb4858b16962ea869c3 # v4.1.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: Build
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: .
platforms: linux/amd64
load: true
tags: ghcr.io/wfcd/warframe-status:ci
push: false
- name: Smoke test through WARP
run: .github/scripts/ci-warp.sh smoke ghcr.io/wfcd/warframe-status:ci
- name: Validate WARP compose
run: docker compose -f docker-compose.warp.example.yml config --quiet