dtinit / portmap

A structured search frontend for portability articles to help people find solutions and help us learn about needs
https://portmap.dtinit.org
Other
2 stars 0 forks source link

Setup Playwright #72

Closed alexbainter closed 7 months ago

alexbainter commented 7 months ago

Closes #33.

Sets up Playwright, adds a couple "smoke tests" to make sure the site's basic functions are working, and modifies the Django CI workflow to run the Playwright tests.

Changes including adding support for authenticating our GitHub API calls with a GITHUB_TOKEN environment variable instead of the private key file. A valid GITHUB_TOKEN is provided by default to every GitHub Action run, so using that means we don't have to store our private key file as a repository secret.

I also added a Django command for populating articles, which I ended up not needing, but I'm leaving it in since it could be handy to populate the articles with ./manage.py populate_articles instead of going through the web UI.