diff options
author | nicolargo <nicolas@nicolargo.com> | 2024-03-10 16:48:53 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2024-03-10 16:48:53 +0100 |
commit | ea4f11a08b0e2b84e1992f15656b52b124911656 (patch) | |
tree | 0fecbc9bb55cd80567ad158616bf8f35abb1ed9c /.github | |
parent | 7ffe0f6c57852bf45654373362bff99f94176810 (diff) |
Add CI pipeline
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 19 | ||||
-rw-r--r-- | .github/workflows/quality.yml (renamed from .github/workflows/codeql-analysis.yml) | 0 | ||||
-rw-r--r-- | .github/workflows/test.yml | 2 | ||||
-rw-r--r-- | .github/workflows/webui.yml (renamed from .github/workflows/node.js.yml) | 4 |
5 files changed, 23 insertions, 4 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a51ec96..070bacb1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ # - Docker Hub # - Pypi -name: CI +name: build env: DEFAULT_DOCKER_IMAGE: nicolargo/glances diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..a055ed0a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: ci + +on: + pull_request: + branches: [ develop ] + push: + branches: [ master, develop ] + tags: + - v* + +jobs: + quality: + test: + needs: quality + webui: + if: ${{ always() }} + needs: [quality, test] + build: + needs: [quality, test, webui] diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/quality.yml index 143d5183..143d5183 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/quality.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7fa9c44..234c8476 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test -on: [push] +# on: [push] jobs: test-linux: diff --git a/.github/workflows/node.js.yml b/.github/workflows/webui.yml index 147546df..104660e6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/webui.yml @@ -1,7 +1,7 @@ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs -name: Node.js CI +name: webui on: push: @@ -20,7 +20,7 @@ jobs: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Glances will be build with Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: |