Merge branch 'main' into catalog-next #3368
Workflow file for this run
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
--- | |
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_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 | |
deploy-development: | |
if: github.ref == 'refs/heads/develop' | |
name: deploy (development) | |
needs: | |
- create-cloudgov-services-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 | |
# catalog-next | |
deploy-next-development: | |
if: github.ref == 'refs/heads/catalog-next' | |
name: deploy catalog-next (development) | |
## The create-services-template.yml does not really work | |
## We have been relying on the services being created manually | |
# needs: | |
# - create-cloudgov-services-development | |
uses: gsa/data.gov/.github/workflows/deploy-template.yml@main | |
with: | |
environ: development | |
app_url: https://catalog-next-dev-datagov.app.cloud.gov | |
app_names: "{\"include\":[{\"app\":\"catalog-next-web\",\"smoketest\":true},{\"app\":\"catalog-next-admin\"},{\"app\":\"catalog-next-proxy\",\"robots-dev\":true}]}" | |
secrets: inherit |