Skip to content

Commit 32b0675

Browse files
committed
XECO-16121: Add github actions
1 parent 271a724 commit 32b0675

5 files changed

Lines changed: 11432 additions & 28932 deletions

File tree

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: '20'
23+
- name: Clean cache
24+
run: npm cache clean --force
25+
26+
- name: Install Dependencies
27+
run: npm ci
28+
29+
- name: Archive npm failure logs
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: npm-logs
33+
path: /home/runner/.npm/_logs
34+
35+
- name: Build
36+
run: npm run build
37+
38+
- name: Deploy
39+
env:
40+
DT_APP_OAUTH_CLIENT_ID: ${{ secrets.CLIENT_ID }}
41+
DT_APP_OAUTH_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
42+
PLAYGROUND_APP_ID: my.tutorial.github.test
43+
run: npm run deploy

.npmrc

Whitespace-only changes.

0 commit comments

Comments
 (0)