Skip to content

Commit

Permalink
completed github actions setup (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy authored Jul 13, 2021
1 parent b18dbc8 commit e9c54a4
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: GeoNode Client CI

# Controls when the workflow will run
on:
Expand All @@ -16,12 +16,15 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test-front-end:
if: ${{ false }} # disable for now
env:
working-directory: ./geonode_mapstore_client/client
runs-on: ubuntu-latest
steps:
- name: "checking out"
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive

- name: "setting up npm"
uses: actions/setup-node@v2
Expand Down Expand Up @@ -58,13 +61,15 @@ jobs:
run: npm test
working-directory: ${{env.working-directory}}

build:
build_and_commit:
env:
working-directory: ./geonode_mapstore_client/client
runs-on: ubuntu-latest
steps:
- name: "checking out"
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive

###########
# SET UP
Expand All @@ -90,7 +95,7 @@ jobs:
${{ runner.os }}-
###############
# NPM CHECKS
# NPM BUILD
#############
- name: npm install
run: npm install
Expand All @@ -99,3 +104,14 @@ jobs:
- name: compile
run: npm run compile
working-directory: ${{env.working-directory}}

###############
# COMMIT
#############
- name: commit
if: ${{ github.event_name=='push' }} # only commit on push to master (PR merge)
uses: EndBug/add-and-commit@v7
with:
add: '--all'
message: 'New client build'
default_author: github_actions

0 comments on commit e9c54a4

Please sign in to comment.