Skip to content
New issue

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

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

Already on GitHub? # to your account

more work on the action #1

Merged
merged 9 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install sitespeed.io
run: |
git clone https://github.com/sitespeedio/sitespeed.io.git
npm install --prefix sitespeed.io -g
- uses: actions/checkout@v4
- name: Install Chrome
run: |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
Expand All @@ -36,5 +32,9 @@ jobs:
run: |
npm install --prefix testrunner
node testrunner/app.js &
- name: Add a test
run: sitespeed.io https://www.wikipedia.org -n 1 --api.hostname 127.0.0.1 --api.location default --headless --api.json
- 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 default --headless --api.json
2 changes: 1 addition & 1 deletion testrunner/config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ logging:

# The working directory for the testrunner, where it temporary will put it files
# By default it used the os.tmpdir
# workingDirectory: "./"
# workingDirectory: "."

# The sitespeed.io executable. The default is a globally installed sitespeed.io
executable: "sitespeed.io"
Expand Down
2 changes: 1 addition & 1 deletion testrunner/src/testrunners/testrunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default async function runJob(job) {
async function createWorkingDirectory(job) {
const baseWorkingDirectory = nconf.get('workingDirectory') || os.tmpdir();

const directory = `${baseWorkingDirectory}${job.queue.name}/${job.id}`;
const directory = `${baseWorkingDirectory}/${job.queue.name}/${job.id}`;
await mkdir(directory, { recursive: true });
return directory;
}
Expand Down