-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (40 loc) · 1.26 KB
/
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
33
34
35
36
37
38
39
40
41
42
name: Continuous Integration
on: push
jobs:
jest:
name: Build and Run Jest Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Run Jest Tests w/ Coverage
run: npm run test:coverage -- --runInBand
s3-deploy:
name: S3 Deploy
needs:
- jest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Depndencies
run: npm ci
- uses: concord-consortium/s3-deploy-action@v1
with:
bucket: models-resources
prefix: ${{ github.event.repository.name }} # cloud-file-manager
awsAccessKeyId: ${{ secrets.AWS_ACCESS_KEY_ID }}
awsSecretAccessKey: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Parameters to GHActions have to be strings, so a regular yaml array cannot
# be used. Instead the `|` turns the following lines into a string
topBranches: |
["${{ github.event.repository.default_branch }}"]
maxVersionAge: '600'