-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
943 changed files
with
38,137 additions
and
46,937 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
docs: ${{ steps.filter.outputs.docs_any_changed }} | ||
steps: | ||
- uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- uses: tj-actions/changed-files@e9772d140489982e0e3704fea5ee93d536f1e275 # v45.0.1 | ||
- uses: tj-actions/changed-files@d6babd6899969df1a11d14c368283ea4436bca78 # v44.5.2 | ||
id: filter | ||
with: | ||
# Any file which is not under docs/, ui/ or is not a markdown file is counted as a backend file | ||
|
@@ -56,7 +56,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Download all Go modules | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Restore go build cache | ||
|
@@ -104,11 +104,11 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Run golangci-lint | ||
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0 | ||
uses: golangci/golangci-lint-action@a4f60bb28d35aeee14e6880718e0c85ff1882e64 # v6.0.1 | ||
with: | ||
version: v1.58.2 | ||
args: --verbose | ||
|
@@ -131,7 +131,7 @@ jobs: | |
- name: Create symlink in GOPATH | ||
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Install required packages | ||
|
@@ -172,7 +172,7 @@ jobs: | |
- name: Run all unit tests | ||
run: make test-local | ||
- name: Generate test results artifacts | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: test-results | ||
path: test-results | ||
|
@@ -195,7 +195,7 @@ jobs: | |
- name: Create symlink in GOPATH | ||
run: ln -s $(pwd) ~/go/src/github.com/argoproj/argo-cd | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Install required packages | ||
|
@@ -236,7 +236,7 @@ jobs: | |
- name: Run all unit tests | ||
run: make test-race-local | ||
- name: Generate test results artifacts | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: race-results | ||
path: test-results/ | ||
|
@@ -251,7 +251,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: Create symlink in GOPATH | ||
|
@@ -303,7 +303,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup NodeJS | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
with: | ||
node-version: '21.6.1' | ||
- name: Restore node dependency cache | ||
|
@@ -323,8 +323,6 @@ jobs: | |
NODE_ENV: production | ||
NODE_ONLINE_ENV: online | ||
HOST_ARCH: amd64 | ||
# If we're on the master branch, set the codecov token so that we upload bundle analysis | ||
CODECOV_TOKEN: ${{ github.ref == 'refs/heads/master' && secrets.CODECOV_TOKEN || '' }} | ||
working-directory: ui/ | ||
- name: Run ESLint | ||
run: yarn lint | ||
|
@@ -356,41 +354,33 @@ jobs: | |
run: | | ||
rm -rf ui/node_modules/argo-ui/node_modules | ||
- name: Get e2e code coverage | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 | ||
with: | ||
name: e2e-code-coverage | ||
path: e2e-code-coverage | ||
- name: Get unit test code coverage | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7 | ||
with: | ||
name: test-results | ||
path: test-results | ||
- name: combine-go-coverage | ||
# We generate coverage reports for all Argo CD components, but only the applicationset-controller, | ||
# app-controller, and repo-server report contain coverage data. The other components currently don't shut down | ||
# gracefully, so no coverage data is produced. Once those components are fixed, we can add references to their | ||
# coverage output directories. | ||
# We generate coverage reports for all Argo CD components, but only the applicationset-controller report | ||
# contains coverage data. The other components currently don't shut down gracefully, so no coverage data is | ||
# produced. Once those components are fixed, we can add references to their coverage output directories. | ||
run: | | ||
go tool covdata percent -i=test-results,e2e-code-coverage/applicationset-controller,e2e-code-coverage/repo-server,e2e-code-coverage/app-controller -o test-results/full-coverage.out | ||
go tool covdata percent -i=test-results,e2e-code-coverage/applicationset-controller -o test-results/full-coverage.out | ||
- name: Upload code coverage information to codecov.io | ||
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 | ||
with: | ||
file: test-results/full-coverage.out | ||
fail_ci_if_error: true | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Upload test results to Codecov | ||
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'argoproj/argo-cd' | ||
uses: codecov/test-results-action@1b5b448b98e58ba90d1a1a1d9fcb72ca2263be46 # v1.0.0 | ||
with: | ||
file: test-results/junit.xml | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
- name: Perform static code analysis using SonarCloud | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
uses: SonarSource/sonarqube-scan-action@aecaf43ae57e412bd97d70ef9ce6076e672fe0a9 # v2.2 | ||
uses: SonarSource/sonarqube-scan-action@540792c588b5c2740ad2bb4667db5cd46ae678f2 # v2.2 | ||
if: env.sonar_secret != '' | ||
test-e2e: | ||
name: Run end-to-end tests | ||
|
@@ -400,14 +390,14 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
k3s: | ||
- version: v1.30.2 | ||
- version: v1.29.1 | ||
# We designate the latest version because we only collect code coverage for that version. | ||
latest: true | ||
- version: v1.29.6 | ||
- version: v1.28.6 | ||
latest: false | ||
- version: v1.28.11 | ||
- version: v1.27.10 | ||
latest: false | ||
- version: v1.27.15 | ||
- version: v1.26.13 | ||
latest: false | ||
needs: | ||
- build-go | ||
|
@@ -429,7 +419,7 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@8410ad0602e1e429cee44a835ae9f77f654a6694 # v4.0.0 | ||
- name: Setup Golang | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | ||
with: | ||
go-version: ${{ env.GOLANG_VERSION }} | ||
- name: GH actions workaround - Kill XSP4 process | ||
|
@@ -474,7 +464,7 @@ jobs: | |
git config --global user.email "[email protected]" | ||
- name: Pull Docker image required for tests | ||
run: | | ||
docker pull ghcr.io/dexidp/dex:v2.41.1 | ||
docker pull ghcr.io/dexidp/dex:v2.38.0 | ||
docker pull argoproj/argo-cd-ci-builder:v1.0.0 | ||
docker pull redis:7.0.15-alpine | ||
- name: Create target directory for binaries in the build-process | ||
|
@@ -506,13 +496,13 @@ jobs: | |
goreman run stop-all || echo "goreman trouble" | ||
sleep 30 | ||
- name: Upload e2e coverage report | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: e2e-code-coverage | ||
path: /tmp/coverage | ||
if: ${{ matrix.k3s.latest }} | ||
- name: Upload e2e-server logs | ||
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | ||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 | ||
with: | ||
name: e2e-server-k8s${{ matrix.k3s.version }}.log | ||
path: /tmp/e2e-server.log | ||
|
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
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.