diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 379ffc89d..3b0fe1252 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -22,21 +22,21 @@ jobs: runs-on: ubuntu-latest environment: dev steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.20.1' + go-version: '1.22' - name: Go Version run: go version - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.11' cache: 'pip' - name: Cache Go modules uses: actions/cache@v2 @@ -77,7 +77,7 @@ jobs: python -m venv .venv source .venv/bin/activate pip install --upgrade pytest py pytest-cov pytest-clarity - pytest "cla/tests" -p no:warnings || true + pytest "cla/tests" -p no:warnings env: PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org AUTH0_PLATFORM_URL: https://linuxfoundation-dev.auth0.com/oauth/token @@ -87,8 +87,7 @@ jobs: - name: Go Setup working-directory: cla-backend-go - run: | - make clean setup + run: make clean setup - name: Go Dependencies working-directory: cla-backend-go @@ -96,8 +95,7 @@ jobs: - name: Go Swagger Generate working-directory: cla-backend-go - run: | - make swagger + run: make swagger - name: Go Build working-directory: cla-backend-go @@ -106,8 +104,7 @@ jobs: - name: Go Test working-directory: cla-backend-go - run: | - make test + run: make test - name: Go Lint working-directory: cla-backend-go diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index e104dfcab..4f0dd5cb9 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -89,7 +89,7 @@ jobs: python -m venv .venv source .venv/bin/activate pip install --upgrade pytest py pytest-cov pytest-clarity - pytest "cla/tests" -p no:warnings || true + pytest "cla/tests" -p no:warnings env: PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org AUTH0_PLATFORM_URL: https://linuxfoundation-dev.auth0.com/oauth/token @@ -118,8 +118,7 @@ jobs: - name: Go Test working-directory: cla-backend-go - run: | - make test + run: make test - name: Go Lint working-directory: cla-backend-go @@ -138,7 +137,6 @@ jobs: cp ../cla-backend-go/bin/zipbuilder-lambda bin/ cp ../cla-backend-go/bin/gitlab-repository-check-lambda bin/ - - name: EasyCLA v1 Deployment us-east-1 working-directory: cla-backend run: | diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 35d535151..8b32b2b05 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -24,22 +24,21 @@ jobs: runs-on: ubuntu-latest environment: prod steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: - go-version: '1.20.1' - check-latest: true + go-version: '1.22' - name: Go Version run: go version - name: Setup Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '20' - name: Setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: - python-version: '3.8' + python-version: '3.11' cache: 'pip' - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 @@ -67,6 +66,8 @@ jobs: - name: Python Setup working-directory: cla-backend run: | + python -m venv .venv + source .venv/bin/activate pip install --upgrade pip pip install -r requirements.txt @@ -117,6 +118,7 @@ jobs: if [[ ! -f serverless.yml ]]; then echo "Missing serverless.yml file. Exiting..."; exit 1; fi if [[ ! -f serverless-authorizer.yml ]]; then echo "Missing serverless-authorizer.yml file. Exiting..."; exit 1; fi yarn sls deploy --force --stage ${STAGE} --region us-east-1 --verbose + - name: EasyCLA v1 Service Check run: | sudo apt install curl jq -y