-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 822 Bytes
/
Copy pathdependabot.yml
File metadata and controls
30 lines (29 loc) · 822 Bytes
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
name: Build dependabot PRs
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.10.0'
- name: Restore cache
uses: actions/cache@v4
with:
path: node_modules
key: yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
restore-keys: |
yarn-${{ hashFiles('**/yarn.lock') }}-
- name: Install Dependencies
run: yarn install
- name: Prepare Environment File
run: mv ops/docker/app/.env.production .env.production
- name: Run Tests
run: yarn test
- name: Build App
run: yarn build