forked from 52North/geonode-mapstore-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '4.3.1' into thuenen_4.3.x
- Loading branch information
Showing
33 changed files
with
651 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: GeoNode Client CI 4.3.x (build) | ||
|
||
concurrency: | ||
group: "client_build" | ||
cancel-in-progress: true | ||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push events but only for the 4.3.x branch | ||
push: | ||
branches: [ 4.3.x ] | ||
paths: | ||
- "VERSION" | ||
- "geonode_mapstore_client/client/**" | ||
- "!geonode_mapstore_client/client/version.txt" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
build_and_commit: | ||
env: | ||
working-directory: ./geonode_mapstore_client/client | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checking out" | ||
uses: actions/checkout@v4 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
########### | ||
# SET UP | ||
######### | ||
- name: "Setting up npm" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
############ | ||
# CACHING | ||
########## | ||
- name: "Cache node modules" | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
############### | ||
# NPM BUILD | ||
############# | ||
- name: "Run npm install" | ||
run: npm install | ||
working-directory: ${{env.working-directory}} | ||
|
||
- name: "Run npm compile" | ||
run: npm run compile | ||
working-directory: ${{env.working-directory}} | ||
|
||
############### | ||
# COMMIT | ||
############# | ||
- name: "Stage files" | ||
run: git add --all | ||
|
||
- name: "Generate temp GitHub token" | ||
uses: tibdex/github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app_id: ${{ secrets.TOKEN_APP_ID }} | ||
private_key: ${{ secrets.TOKEN_APP_PRIVATE_KEY }} | ||
|
||
- name: "Create Pull Request" | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ steps.generate-token.outputs.token }} | ||
base: "4.3.x" | ||
title: "new client build" | ||
body: "Automated client build from GeoNode Client CI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: GeoNode Client CI 4.3.x (tests) | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow pull request events but only for the 4.3.x branch | ||
pull_request: | ||
branches: [ 4.3.x ] | ||
paths: | ||
- "geonode_mapstore_client/client/**" | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
test-front-end: | ||
env: | ||
working-directory: ./geonode_mapstore_client/client | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checking out" | ||
uses: actions/checkout@v4 | ||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
|
||
- name: "Setting up npm" | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
############ | ||
# CACHING | ||
########## | ||
- name: "Cache node modules" | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
############### | ||
# NPM CHECKS | ||
############# | ||
- name: "Run npm install" | ||
run: npm install | ||
working-directory: ${{env.working-directory}} | ||
|
||
- name: "Run ESlint" | ||
run: npm run lint | ||
working-directory: ${{env.working-directory}} | ||
|
||
- name: "Run Unit Tests" | ||
run: npm test | ||
working-directory: ${{env.working-directory}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.3.0 | ||
4.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# add legacy peer dependency flag on npm install | ||
legacy-peer-deps=true | ||
# this is needed for node greater then 16 | ||
node-options=--openssl-legacy-provider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.