Skip to content

setup cf env

setup cf env #3418

Workflow file for this run

---
name: 1 - Commit
on:
push:
jobs:
lint-actions:
name: Lint Yaml
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Lint GitHub Actions
run: yamllint -c .yamllint.yml .github/workflows/
test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: build
run: make build
- name: test
run: make test
- name: cypress-artifacs
uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-artifacts
path: |
./e2e/cypress/screenshots/
./e2e/cypress/videos/
test_proxy:
name: Validate Proxy Configuration Files
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: test
run: make validate-proxy
test_importer:
name: test importer
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: x64
- name: test_importer
run: make test-import-tool
test_vulnerability:
name: test vulnerability
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: test_vulnerability
run: make vulnerability-check
create-cloudgov-services-development:
if: github.ref == 'refs/heads/develop'
name: create services (development)
uses: gsa/data.gov/.github/workflows/create-services-template.yml@main
with:
environ: development
secrets: inherit
clear-cache-development:
name: Clear Buildpack Cache (development)
runs-on: ubuntu-latest
environment: development
steps:
- name: Clear buildpack cache
uses: cloud-gov/cg-cli-tools@main
with:
command: >
for app in catalog-web catalog-admin catalog-fetch catalog-gather catalog-proxy
do
app_guid=$(cf app --guid "$app")
cf curl -X POST /v3/apps/${app_guid}/actions/clear_buildpack_cache
done
cf_org: gsa-datagov
cf_space: development
cf_username: ${{ secrets.CF_SERVICE_USER }}
cf_password: ${{ secrets.CF_SERVICE_AUTH }}
deploy-development:
if: github.ref == 'refs/heads/develop'
name: deploy (development)
needs:
- create-cloudgov-services-development
- clear-cache-development
uses: gsa/data.gov/.github/workflows/deploy-template.yml@main
with:
environ: development
app_url: https://catalog-dev-datagov.app.cloud.gov
app_names: "{\"include\":[{\"app\":\"catalog-web\",\"smoketest\":true},{\"app\":\"catalog-admin\"},{\"app\":\"catalog-fetch\"},{\"app\":\"catalog-gather\"},{\"app\":\"catalog-proxy\",\"robots-dev\":true}]}"
secrets: inherit