Skip to content

Commit 6bb5400

Browse files
authored
Merge pull request #3 from relative-ci/add-webapp-2
chore: Add webapp-2
2 parents 44ac6a2 + b9ca84e commit 6bb5400

19 files changed

+21925
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,47 @@ jobs:
4646
with:
4747
name: artifacts-webapp-1
4848
path: webapp-1/artifacts
49+
50+
build-webapp-2:
51+
runs-on: ubuntu-latest
52+
defaults:
53+
run:
54+
working-directory: webapp-2
55+
56+
strategy:
57+
matrix:
58+
node-version: [14.x]
59+
60+
steps:
61+
- uses: actions/checkout@v2
62+
63+
- name: Cache node modules
64+
uses: actions/cache@v2
65+
env:
66+
cache-name: cache-node-modules
67+
with:
68+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
69+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
70+
restore-keys: |
71+
${{ runner.os }}-build-${{ env.cache-name }}-
72+
${{ runner.os }}-build-
73+
${{ runner.os }}-
74+
75+
- name: Use Node.js ${{ matrix.node-version }}
76+
uses: actions/setup-node@v2
77+
with:
78+
node-version: ${{ matrix.node-version }}
79+
80+
- run: npm ci
81+
82+
- name: Build
83+
run: npm run build --if-present
84+
env:
85+
RELATIVE_CI_KEY: ${{ secrets.WEBAPP_2_RELATIVE_CI_KEY }}
86+
DEBUG: ${{ secrets.DEBUG }}
87+
88+
- name: Upload artifacts
89+
uses: actions/upload-artifact@v2
90+
with:
91+
name: artifacts-webapp-2
92+
path: webapp-2/artifacts

webapp-2/.babelrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
'@babel/preset-react',
4+
'@babel/preset-env',
5+
],
6+
};

webapp-2/artifacts/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

0 commit comments

Comments
 (0)