Skip to content

Commit

Permalink
Merge pull request #4574 from communitybridge/unicron-check-build-br-ci
Browse files Browse the repository at this point in the history
Check if CI workflow is fixed
  • Loading branch information
lukaszgryglicki authored Feb 5, 2025
2 parents e3b77bb + 6be55b5 commit 0072753
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -87,17 +87,15 @@ 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
run: make deps

- name: Go Swagger Generate
working-directory: cla-backend-go
run: |
make swagger
run: make swagger

- name: Go Build
working-directory: cla-backend-go
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0072753

Please sign in to comment.