Skip to content

Commit

Permalink
reintroduce ci difference
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 21, 2025
1 parent 70fc41c commit 3e87086
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ jobs:
run: npm install && cd ./integration-tests/js-compute && npm install

- name: Run Tests
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --skip-teardown${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.profile == 'weval' && ' --aot' || '' }}${{ matrix.features == 'http-cache' && ' --http-cache' || '' }}
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --ci --skip-teardown${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.profile == 'weval' && ' --aot' || '' }}${{ matrix.features == 'http-cache' && ' --http-cache' || '' }}
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

- name: Run Module Mode Tests
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --skip-setup --module-mode${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.profile == 'weval' && ' --aot' || '' }}${{ matrix.features == 'http-cache' && ' --http-cache' || '' }}
run: SUFFIX_STRING=${{matrix.profile}} node integration-tests/js-compute/test.js --ci --skip-setup --module-mode${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.profile == 'weval' && ' --aot' || '' }}${{ matrix.features == 'http-cache' && ' --http-cache' || '' }}
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

Expand Down Expand Up @@ -446,11 +446,11 @@ jobs:
run: npm install && cd ./integration-tests/js-compute && npm install

- name: Run Tests
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --skip-teardown --debug-build${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.features == 'http-cache' && ' --enable-http-cache' || '' }}
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --ci --skip-teardown --debug-build${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.features == 'http-cache' && ' --enable-http-cache' || '' }}
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}

- name: Run Module Mode Tests
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --skip-setup --module-mode --debug-build${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.features == 'http-cache' && ' --enable-http-cache' || '' }}
run: SUFFIX_STRING=debug node integration-tests/js-compute/test.js --ci --skip-setup --module-mode --debug-build${{ matrix.platform == 'viceroy' && ' --local' || '' }}${{ matrix.features == 'http-cache' && ' --enable-http-cache' || '' }}
env:
FASTLY_API_TOKEN: ${{ secrets.FASTLY_API_TOKEN }}
3 changes: 2 additions & 1 deletion integration-tests/js-compute/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const filter = args.filter((arg) => !arg.startsWith('--'));
const bail = args.includes('--bail');
const skipSetup = args.includes('--skip-setup');
const skipTeardown = args.includes('--skip-setup');
const ci = args.includes('--ci');

async function $(...args) {
return await retry(10, () => zx(...args));
Expand Down Expand Up @@ -81,7 +82,7 @@ let domain, serviceId;
const fixturePath = join(__dirname, 'fixtures', fixture);
let localServer;

const env = getEnv(serviceName);
const env = getEnv(ci ? serviceName : null);
Object.assign(process.env, env);

await cd(fixturePath);
Expand Down

0 comments on commit 3e87086

Please sign in to comment.