Skip to content

Commit

Permalink
action: Fix the action test
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored May 24, 2024
1 parent 9472375 commit cc56286
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
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

0 comments on commit cc56286

Please # to comment.