trying to get build test working
This commit is contained in:
1 parent
0499feb61d
commit
d184871217
1 file changed
+20
-13
+20
-13
@@ -8,9 +8,25 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
jobs:
|
jobs:
|
||||||
|
metadata:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Metadata
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.version.outputs.VERSION }}
|
||||||
|
steps:
|
||||||
|
- name: Check out repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Get Version
|
||||||
|
id: version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)-g$(echo ${{ github.sha }} | cut -c1-3)
|
||||||
|
|
||||||
python:
|
python:
|
||||||
name: "Python Tests"
|
name: "Python Tests"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- metadata
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
action: [lint, coverage, security-checks]
|
action: [lint, coverage, security-checks]
|
||||||
@@ -24,12 +40,14 @@ jobs:
|
|||||||
run: cd api && make setup
|
run: cd api && make setup
|
||||||
- name: Echo dependencies
|
- name: Echo dependencies
|
||||||
run: cd api && ./venv/bin/pip freeze
|
run: cd api && ./venv/bin/pip freeze
|
||||||
- name: Running ${{ matrix.action }}
|
- name: ${{ needs.metadata.outputs.version }} / ${{ matrix.action }}
|
||||||
run: cd api && make ${{ matrix.action }}
|
run: cd api && make ${{ matrix.action }}
|
||||||
|
|
||||||
nodejs:
|
nodejs:
|
||||||
name: "NodeJs Tests"
|
name: "NodeJs Tests"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
needs:
|
||||||
|
- metadata
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
action:
|
action:
|
||||||
@@ -45,20 +63,9 @@ jobs:
|
|||||||
cache-dependency-path: webapp/yarn.lock
|
cache-dependency-path: webapp/yarn.lock
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: cd webapp && yarn install
|
run: cd webapp && yarn install
|
||||||
- name: Run Tests
|
- name: ${{ needs.metadata.outputs.version }} / ${{ matrix.action }}
|
||||||
run: cd webapp && yarn ${{ matrix.action }}
|
run: cd webapp && yarn ${{ matrix.action }}
|
||||||
|
|
||||||
metadata:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
name: Metadata
|
|
||||||
outputs:
|
|
||||||
version: ${{ steps.get_version.outputs.VERSION }}
|
|
||||||
steps:
|
|
||||||
- name: Get the version
|
|
||||||
id: version
|
|
||||||
shell: "bash"
|
|
||||||
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)-g$(echo ${{ github.sha }} | cut -c1-3)
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
name: Build & Publish ${{ matrix.arch }}
|
name: Build & Publish ${{ matrix.arch }}
|
||||||
|
|||||||
Reference in new issue
Block a user