Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Btabaska/74 pally ci api setup #2017

Closed
wants to merge 22 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8c62178
Update internal_task.yml
acouch May 14, 2024
90d14d6
Delete .github/ISSUE_TEMPLATE/internal_30k.md
acouch May 14, 2024
a9ea8b6
Delete .github/ISSUE_TEMPLATE/internal_adr.yml
acouch May 14, 2024
6bfd75e
[Issue #1757]: setup e2e tests for search (#1)
rylew1 May 14, 2024
6944695
Merge branch 'HHS:main' into main
coilysiren May 14, 2024
493fb4e
[Issue #37]: finish e2e tests (#38)
rylew1 May 22, 2024
cd18a47
[Issue #1957]: sortby posted date desc default (#4)
rylew1 May 22, 2024
16f708e
Upgrade dependencies for API (May 21, 2024) (#48)
chouinar May 22, 2024
25b0295
[Issue #9] Setup opensearch locally (#39)
chouinar May 22, 2024
b40344d
[Issue #12] Setup the opportunity v1 endpoint which will be backed by…
chouinar May 22, 2024
879e743
[Issue #10] Populate the search index from the opportunity tables (#47)
chouinar May 22, 2024
2572fe0
Move Pages to App Router (#7)
acouch May 23, 2024
9b8cd17
[Issue #37]: e2e docs update (#49)
rylew1 May 24, 2024
3eb5fb5
[Issue #50]: change SortBy to USWDS component (#52)
rylew1 May 28, 2024
4047895
[Issue 56]: Date rounding bug (#57)
rylew1 May 31, 2024
0f38c92
[Issue #58] Locally, preserve the auth token in the OpenAPI across re…
chouinar Jun 3, 2024
9574e29
[Issue #51]: debounce pagination (#53)
rylew1 Jun 3, 2024
f12d0dc
[Issue #64] update to Next 14.2.3 (#65)
rylew1 Jun 4, 2024
2db4d35
[Issue #69] Remove the BASE_RESPONSE_SCHEMA (#70)
chouinar Jun 7, 2024
ddf0d75
[Task]: Finish adding Postgres Integration to Analytics Library (#72)
aplybeah Jun 12, 2024
a774ada
[Issue #40]: Setup pa11y-ci (#41)
rylew1 Jun 12, 2024
65e6840
[Issue #88] Adjust docker commands based on recent updates (#89)
chouinar Jun 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/internal_30k.md

This file was deleted.

56 changes: 0 additions & 56 deletions .github/ISSUE_TEMPLATE/internal_adr.yml

This file was deleted.

1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/internal_task.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Internal - Task
description: Describes an individual task that needs to be completed
title: "[Task]: "
labels: ["project: grants.gov"]
assignees:
- octocat
body:
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/ci-frontend-a11y.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: pa11y tests

on:
pull_request:
paths:
- frontend/**
- .github/workflows/ci-frontend-a11y.yml

jobs:
build:
name: Pa11y-ci tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

env:
NODE_VERSION: 20
LOCKFILE_PATH: ./frontend/package-lock.json
PACKAGE_MANAGER: npm

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache-dependency-path: ${{ env.LOCKFILE_PATH }}
cache: ${{ env.PACKAGE_MANAGER }}

- name: Install dependencies
run: npm ci

- name: Create screenshots directory
run: mkdir -p screenshots-output

- name: Build project
run: npm run build

- name: Start server and log output
run: npm run start &

- name: Wait for frontend to be ready
run: |
# Ensure the server wait script is executable
chmod +x ./bin/wait-for-frontend.sh
./bin/wait-for-frontend.sh

- name: Run pa11y-ci
run: |
set -e # Ensure the script fails if any command fails
npm run test:pa11y
echo "pa11y-ci tests finished."

- name: Upload screenshots to artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: screenshots
path: ./frontend/screenshots-output
3 changes: 3 additions & 0 deletions analytics/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

For more information visit: https://www.dynaconf.com/
"""

from dynaconf import Dynaconf, Validator, ValidationError

settings = Dynaconf(
Expand All @@ -16,6 +17,8 @@
# looks for config vars in the following files
# with vars in .secrets.toml overriding vars in settings.toml
settings_files=["settings.toml", ".secrets.toml"],
# merge the settings found in all files
merge_enabled= True,
# add validators for our required config vars
validators=[
Validator("SLACK_BOT_TOKEN", must_exist=True),
Expand Down
Loading
Loading