-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d26b1d
commit 1c37828
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test running everything in Docker using Linux | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: macos-15 | ||
steps: | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- uses: actions/checkout@v4 | ||
- name: Install Docker and dependencies | ||
run: brew install docker docker-machine docker-compose | ||
- name: Start dependencies | ||
run: docker compose -f docker-compose.yml -f docker-compose-local.yml up -d | ||
- name: Show versions | ||
run: | | ||
docker --version | ||
- name: Get host IP | ||
run: echo "HOST_IP=$(hostname -I | awk '{print $1}')" >> $GITHUB_ENV | ||
- name: Run a test | ||
run: | | ||
git clone https://github.com/sitespeedio/sitespeed.io.git | ||
cd sitespeed.io | ||
npm install | ||
bin/sitespeed.js https://www.wikipedia.org -n 1 --api.hostname 127.0.0.1 --api.location docker --headless --api.json --s3.endpoint "http://${{ env.HOST_IP }}:9000" | ||
- name: Display Server log | ||
if: failure() || success() | ||
run: docker logs onlinetest-sitespeed.io-server-1 | ||
- name: Display testrunner log | ||
if: failure() || success() | ||
run: docker logs onlinetest-sitespeed.io-testrunner-1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Test running everything in Docker using Linux | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- uses: actions/checkout@v4 | ||
- name: Start dependencies | ||
run: docker compose -f docker-compose.yml -f docker-compose-local.yml up -d | ||
- name: Show versions | ||
run: | | ||
docker --version | ||
- name: Get host IP | ||
run: echo "HOST_IP=$(hostname -I | awk '{print $1}')" >> $GITHUB_ENV | ||
- name: Run a test | ||
run: | | ||
git clone https://github.com/sitespeedio/sitespeed.io.git | ||
cd sitespeed.io | ||
npm install | ||
bin/sitespeed.js https://www.wikipedia.org -n 1 --api.hostname 127.0.0.1 --api.location docker --headless --api.json --s3.endpoint "http://${{ env.HOST_IP }}:9000" | ||
- name: Display Server log | ||
if: failure() || success() | ||
run: docker logs onlinetest-sitespeed.io-server-1 | ||
- name: Display testrunner log | ||
if: failure() || success() | ||
run: docker logs onlinetest-sitespeed.io-testrunner-1 |