Re-add GitHub Actions linting (#3391)
Move linting into the main CI workflow Split into a different PR so that the file checker gets updated and we can actually see if this is working as intended --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change - [x] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [x] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) * closes #3389 #### Test Plan - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
cf2aa9013a
commit
97ca68fba1
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@ -364,7 +364,7 @@ jobs:
|
|||||||
# --- Source Code Linting ----------------------------------------------------------------------------
|
# --- Source Code Linting ----------------------------------------------------------------------------
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Linting:
|
Source-Code-Linting:
|
||||||
needs: [Precheck, Checkout]
|
needs: [Precheck, Checkout]
|
||||||
environment: Testing
|
environment: Testing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -404,12 +404,36 @@ jobs:
|
|||||||
working-directory: src
|
working-directory: src
|
||||||
|
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------------------------------------------
|
||||||
|
# --- GitHub Actions Linting -------------------------------------------------------------------------
|
||||||
|
# ----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Actions-Lint:
|
||||||
|
needs: [Precheck]
|
||||||
|
environment: Testing
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: needs.precheck.outputs.actionsfileschanged == 'true'
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: actionlint
|
||||||
|
uses: raven-actions/actionlint@v1
|
||||||
|
with:
|
||||||
|
fail-on-error: true
|
||||||
|
cache: true
|
||||||
|
# Ignore
|
||||||
|
# * combining commands into a subshell and using single output
|
||||||
|
# redirect
|
||||||
|
# * various variable quoting patterns
|
||||||
|
# * possible ineffective echo commands
|
||||||
|
flags: "-ignore SC2129 -ignore SC2086 -ignore SC2046 -ignore 2116"
|
||||||
|
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
# --- Publish steps ----------------------------------------------------------------------------------
|
# --- Publish steps ----------------------------------------------------------------------------------
|
||||||
# ----------------------------------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
Publish-Binary:
|
Publish-Binary:
|
||||||
needs: [Test-Suite-Trusted, Linting, Website-Linting, SetEnv]
|
needs: [Test-Suite-Trusted, Source-Code-Linting, Website-Linting, SetEnv]
|
||||||
environment: ${{ needs.SetEnv.outputs.environment }}
|
environment: ${{ needs.SetEnv.outputs.environment }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
|
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
|
||||||
@ -426,7 +450,7 @@ jobs:
|
|||||||
rudderstack_data_plane_url: ${{ secrets.RUDDERSTACK_CORSO_DATA_PLANE_URL }}
|
rudderstack_data_plane_url: ${{ secrets.RUDDERSTACK_CORSO_DATA_PLANE_URL }}
|
||||||
|
|
||||||
Publish-Image:
|
Publish-Image:
|
||||||
needs: [Test-Suite-Trusted, Linting, Website-Linting, SetEnv]
|
needs: [Test-Suite-Trusted, Source-Code-Linting, Website-Linting, SetEnv]
|
||||||
environment: ${{ needs.SetEnv.outputs.environment }}
|
environment: ${{ needs.SetEnv.outputs.environment }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
@ -568,7 +592,7 @@ jobs:
|
|||||||
./corso.exe --version 2>&1 | grep -E "version: ${{ env.CORSO_VERSION }}$"
|
./corso.exe --version 2>&1 | grep -E "version: ${{ env.CORSO_VERSION }}$"
|
||||||
|
|
||||||
Publish-Website-Test:
|
Publish-Website-Test:
|
||||||
needs: [Test-Suite-Trusted, Linting, Website-Linting, SetEnv]
|
needs: [Test-Suite-Trusted, Source-Code-Linting, Website-Linting, SetEnv]
|
||||||
environment: ${{ needs.SetEnv.outputs.environment }}
|
environment: ${{ needs.SetEnv.outputs.environment }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
|
|||||||
6
.github/workflows/sanity-test.yaml
vendored
6
.github/workflows/sanity-test.yaml
vendored
@ -66,7 +66,7 @@ jobs:
|
|||||||
- name: Version Test
|
- name: Version Test
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
if [ $( ./corso --version | grep 'Corso version:' | wc -l) -ne 1 ]
|
if [ $( ./corso --version | grep -c 'Corso version:' ) -ne 1 ]
|
||||||
then
|
then
|
||||||
echo "valid version not found"
|
echo "valid version not found"
|
||||||
exit 1
|
exit 1
|
||||||
@ -78,7 +78,7 @@ jobs:
|
|||||||
TEST_RESULT: "test_results"
|
TEST_RESULT: "test_results"
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
prefix=`date +"%Y-%m-%d-%T"`
|
prefix=$(date +"%Y-%m-%d-%T")
|
||||||
echo -e "\nRepo init test\n" >> ${CORSO_LOG_FILE}
|
echo -e "\nRepo init test\n" >> ${CORSO_LOG_FILE}
|
||||||
./corso repo init s3 \
|
./corso repo init s3 \
|
||||||
--no-stats \
|
--no-stats \
|
||||||
@ -266,7 +266,7 @@ jobs:
|
|||||||
AZURE_CLIENT_SECRET: ${{ secrets[needs.SetM365App.outputs.client_secret_env] }}
|
AZURE_CLIENT_SECRET: ${{ secrets[needs.SetM365App.outputs.client_secret_env] }}
|
||||||
AZURE_TENANT_ID: ${{ secrets.TENANT_ID }}
|
AZURE_TENANT_ID: ${{ secrets.TENANT_ID }}
|
||||||
run: |
|
run: |
|
||||||
suffix=`date +"%Y-%m-%d_%H-%M"`
|
suffix=$(date +"%Y-%m-%d_%H-%M")
|
||||||
|
|
||||||
go run . onedrive files \
|
go run . onedrive files \
|
||||||
--user ${TEST_USER} \
|
--user ${TEST_USER} \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user