Skip to content

Commit

Permalink
Change test
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed Apr 2, 2024
1 parent e28233f commit 0dded6d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 23 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/test-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Cloning repository
uses: actions/checkout@v4

- name: 'Default'
- name: Setting up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: npm

- name: Installing Node.js packages
run: npm ci

- name: Running tests
run: |
echo 'we require a job named "test", but not all pull requests trigger an action. So we created this small silly job named "test" that will always pass, just to make sure nothing hangs as a result of not triggering an actual job.'
npx gulp updateTestResources
npx gulp lintNode
npx gulp lintYaml
npm run test:platform
npm run test:playground
49 changes: 32 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@
"_test:pixi:e2e": "APP_ENV=local jest --forceExit -c e2e.jest.config.js",
"test:grow-extensions": "cd pages/extensions && if which grow; then python3 -m unittest discover -p \"*_test.py\"; else echo grow not installed with pip. skip tests; fi"
},
"keywords": ["amphtml", "framework", "documentation"],
"keywords": [
"amphtml",
"framework",
"documentation"
],
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"signale": {
Expand All @@ -49,7 +53,10 @@
"@boilerplate": "boilerplate",
"@lib": "platform/lib"
},
"browserslist": ["last 2 versions", "not dead"],
"browserslist": [
"last 2 versions",
"not dead"
],
"dependencies": {
"@ampproject/toolbox-cache-list": "2.9.0",
"@ampproject/toolbox-cors": "2.9.0",
Expand Down Expand Up @@ -115,7 +122,7 @@
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-replace": "5.0.5",
"absolutify": "0.1.0",
"amphtml-validator": "1.0.35",
"amphtml-validator": "1.0.36",
"ansi-colors": "4.1.3",
"archiver": "6.0.1",
"babel-loader": "9.1.3",
Expand Down
2 changes: 1 addition & 1 deletion playground/src/validator/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import events from '../events/events.js';
import lazyLoad from '../lazy-load/base.js';
import {EVENT_SET_RUNTIME} from '../runtime/runtimes.js';

const DEFAULT_VALIDATOR_URL = 'https://ampjs.org/v0/validator_wasm.js';
const DEFAULT_VALIDATOR_URL = 'https://cdn.ampproject.org/v0/validator_wasm.js';

export const NO_ERRORS = {
errors: [],
Expand Down

0 comments on commit 0dded6d

Please sign in to comment.