Skip to content

Certain providers block cloud IPs, so we need self-hosted workers to circumvent this for running tests in GitHub Actions

Notifications You must be signed in to change notification settings

nextauthjs/github-workers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NextAuth.js GitHub Actions workers 👷

Prerequisities

  1. Get Personal Access Token (PAT) with "repo" and "workflow" scope: https://github.com/settings/tokens
  2. Create .env.local
  3. add ACCESS_TOKEN=PASTE_PAT_HERE

Build image

docker build --tag runner .

Run container

Single

Run

docker run \
  --detach \
  --env-file ".env.local" \
  --name runner \
  runner

Stop

docker stop runner
docker rm runner

Swarm

Build Docker Compose

docker-compose build

Start 3 runners

docker-compose up --scale runner=3 -d

Stop

docker-compose down runner

Thanks / More info

https://testdriven.io/blog/github-actions-docker/

About

Certain providers block cloud IPs, so we need self-hosted workers to circumvent this for running tests in GitHub Actions

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published