-
Notifications
You must be signed in to change notification settings - Fork 13
81 lines (68 loc) · 2.05 KB
/
continuous-integration.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
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
79
80
81
name: Continuous Integration
on:
push:
branches:
- '**'
tags-ignore:
- '**'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 60
defaults:
run:
working-directory: content-build
steps:
- name: Checkout vagov-content
uses: actions/checkout@v2
with:
path: vagov-content
- name: Checkout content-build
uses: actions/checkout@v2
with:
repository: department-of-veterans-affairs/content-build
path: content-build
- name: Checkout vets-website
uses: actions/checkout@v2
with:
repository: department-of-veterans-affairs/vets-website
path: vets-website
- name: Get Node version
id: get-node-version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.get-node-version.outputs.NODE_VERSION }}
- name: Install dependencies and build vets-website
uses: nick-invision/retry@v2
with:
command: cd vets-website && yarn --frozen-lockfile --prefer-offline && yarn build
max_attempts: 3
timeout_minutes: 15
- name: Install dependencies and build content-build
uses: nick-invision/retry@v2
with:
command: cd content-build && cp .env.example .env && yarn --frozen-lockfile --prefer-offline && yarn fetch-drupal-cache && yarn build
max_attempts: 3
timeout_minutes: 45
security-audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
uses: ./.github/workflows/install
timeout-minutes: 30
with:
key: ${{ hashFiles('yarn.lock') }}
yarn_cache_folder: .cache/yarn
path: |
.cache/yarn
node_modules
- name: Audit dependencies
run: yarn security-check