Skip to content
Snippets Groups Projects
Unverified Commit 46fb8f38 authored by xgui3783's avatar xgui3783 Committed by GitHub
Browse files

Merge pull request #41 from FZJ-INM1-BDA/chore/skipCI

[skip ci] update GHA to allow for skip ci
parents d2477c1d 724cda1d
No related branches found
No related tags found
No related merge requests found
name: Backend tests
on: [push]
on: [ push ]
env:
NODE_ENV: test
jobs:
install_dep:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: cd into deploy, npm install
run: |
cd deploy
npm i
- name: test no env
run: |
cd deploy
npm run testNoEnv
- name: test with env
env:
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
......
......@@ -15,8 +15,8 @@ env:
jobs:
buildimage:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: self-hosted
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
......@@ -28,8 +28,8 @@ jobs:
docker build --build-arg BACKEND_URL=${BACKEND_URL} -t ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} .
env:
BACKEND_URL: ${{ env.ATLAS_URL }}
test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: self-hosted
needs: buildimage
steps:
......@@ -47,7 +47,6 @@ jobs:
--env REFRESH_TOKEN=${{ secrets.REFRESH_TOKEN }} \
-dit \
${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG}
- uses: actions/checkout@v1
- name: Start pptr docker container with name ${{ env.DOCKER_E2E_PPTR }}
run: |
......
name: Frontend Tests (Karma + Mocha + Chai)
on: [push]
on: [ push ]
jobs:
build:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment