Single deno step (aligning with other repos) (#396)

* Single deno step (aligning with other repos)

* skip root mod.ts
This commit is contained in:
Jaco
2022-07-09 09:56:18 +02:00
committed by GitHub
parent e07bd1eb00
commit b5ae0089d1
4 changed files with 10 additions and 31 deletions

View File

@@ -10,7 +10,8 @@ module.exports = {
'**/target/*',
'**/build-wasm/*',
'**/deno/*.ts',
'**/test/*.ts'
'**/test/*.ts',
'/mod.ts'
],
parserOptions: {
...base.parserOptions,

View File

@@ -5,13 +5,16 @@ jobs:
pr:
strategy:
matrix:
step: ['lint', 'test', 'build']
step: ['lint', 'test', 'build', 'deno']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
env:
YARN_ENABLE_SCRIPTS: false
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: ${{ matrix.step }}
if: always()
run: |
@@ -19,4 +22,5 @@ jobs:
if [ "${{ matrix.step }}" != "lint" ]; then
./scripts/install-build-deps.sh
fi
yarn polkadot-dev-deno-map
yarn ${{ matrix.step }}

View File

@@ -1,27 +0,0 @@
name: deno
on: [pull_request]
jobs:
pr:
strategy:
matrix:
step: ['check', 'build']
name: ${{ matrix.step }}
runs-on: ubuntu-latest
env:
YARN_ENABLE_SCRIPTS: false
WITH_DENO: true
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- name: ${{ matrix.step }}
if: always()
run: |
yarn install --immutable | grep -v 'YN0013'
if [ "${{ matrix.step }}" != "check" ]; then
./scripts/install-build-deps.sh
fi
yarn polkadot-dev-deno-map
yarn deno:${{ matrix.step }}

View File

@@ -23,8 +23,9 @@
"build:rollup": "polkadot-exec-rollup --config",
"build:wasm": "./scripts/build.sh",
"clean": "./scripts/clean.sh",
"deno:build": "yarn build",
"deno:check": "yarn build:js && deno check --import-map=import_map.json mod.ts",
"deno": "yarn deno:build && yarn deno:check",
"deno:build": "WITH_DENO=1 yarn build",
"deno:check": "deno check --import-map=import_map.json mod.ts",
"lint": "polkadot-dev-run-lint",
"postinstall": "polkadot-dev-yarn-only",
"test": "yarn test:wasm-crypto:rust",