Skip to content

Commit

Permalink
Incorporate the privacy policy in the Mini App
Browse files Browse the repository at this point in the history
  • Loading branch information
madhead committed Jul 12, 2024
1 parent 30b2fc1 commit 95b20cf
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,27 @@ jobs:
- uses: madhead/check-gradle-version@v1
continue-on-error: true

build-policies:
name: Build policies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
with:
arguments: :policies:privacy
cache-read-only: ${{ github.ref != 'refs/heads/master' }}
- run: tar -cvf policies.tar policies/build
- uses: actions/upload-artifact@v3
with:
name: policies
path: |
policies.tar
unit-test:
name: Unit test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -91,13 +112,20 @@ jobs:
mini-app-test:
name: Mini App test
runs-on: ubuntu-latest
needs:
- build-policies
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: 'mini-app/.nvmrc'
- run: yarn install
working-directory: mini-app
- uses: actions/download-artifact@v3
with:
name: policies
- run: |
tar xvf policies.tar
- run: yarn run build
working-directory: mini-app

Expand Down
5 changes: 5 additions & 0 deletions mini-app/webpack/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ const configuration: webpack.Configuration = {
from: path.join(src, "/i18n"),
to: path.join(build, "/i18n"),
},
{
from: "*.{html,css}",
to: build,
context: path.resolve(root, "../policies/build"),
},
],
}),
],
Expand Down
3 changes: 3 additions & 0 deletions mini-app/webpack/development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ export default merge(common, {
filename: "[name].js",
chunkFilename: "[id].chunk.js",
},
devServer: {
allowedHosts: "all",
},
});

0 comments on commit 95b20cf

Please sign in to comment.