-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH Actions runs, container, missing job and main instead of master (#50)
* GH Actions runs, container and missing job * Use main instead of master * remove reference to patch as it is not used * fix build and lint. use tsconfig base : recommended * outout should be to dist * remove tests that are not here * Add GH Actions from monorepo * Remove Generate DevChain step * ci is having issues finding files for tests --------- Co-authored-by: Aaron <[email protected]>
- Loading branch information
Showing
19 changed files
with
193 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Sync workspace for protocol tests" | ||
description: "Sync workspace for protocol tests" | ||
inputs: | ||
package-json-checksum: | ||
description: "Checksum of package.json" | ||
required: true | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Sync workspace | ||
uses: ./.github/actions/sync-workspace | ||
with: | ||
package-json-checksum: ${{ inputs.package-json-checksum }} | ||
- uses: actions/cache/restore@v3 | ||
id: cache_protocol | ||
with: | ||
path: packages/protocol/.tmp/released_chain | ||
key: protocol-${{ github.sha }} | ||
enableCrossOsArchive: true | ||
fail-on-cache-miss: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "Sync workspace" | ||
description: "Sync GitHub Action workspace using GitHub cache" | ||
inputs: | ||
package-json-checksum: | ||
description: "Checksum of package.json" | ||
required: true | ||
rebuild-package: | ||
description: "Rebuild package. It also disable fail-on-cache-miss" | ||
required: false | ||
default: 'false' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/cache/restore@v3 | ||
id: cache_node | ||
env: | ||
REBUILD_PACKAGE: ${{ inputs.rebuild-package }} | ||
with: | ||
path: | | ||
node_modules | ||
packages/**/node_modules | ||
key: node-${{ runner.os }}-${{ runner.arch }}-${{ env.NODE_MODULE_CACHE_VERSION }}-${{ hashFiles('**/yarn.lock') }}-${{ inputs.package-json-checksum }} | ||
enableCrossOsArchive: true | ||
fail-on-cache-miss: "!${{ fromJSON(env.REBUILD_PACKAGE) }}" | ||
- name: Restore build artifacts cache | ||
uses: actions/cache/restore@v3 | ||
id: cache_build_artifacts | ||
env: | ||
REBUILD_PACKAGE: ${{ inputs.rebuild-package }} | ||
with: | ||
# We need to cache all the artifacts generated by yarn install+build | ||
# Update this list also in .github/actions/sync-workspace/action.yml with exactly the same list | ||
path: | | ||
packages/**/lib | ||
packages/**/dist | ||
packages/**/build | ||
key: code-${{ github.sha }} | ||
restore-keys: | | ||
code-${{ github.sha }} | ||
enableCrossOsArchive: true | ||
fail-on-cache-miss: "!${{ fromJSON(env.REBUILD_PACKAGE) }}" | ||
- name: Rebuild package | ||
shell: bash --login -eo pipefail {0} | ||
env: | ||
REBUILD_PACKAGE: ${{ inputs.rebuild-package }} | ||
if: ${{ fromJSON(env.REBUILD_PACKAGE) }} | ||
run: | | ||
yarn install | ||
yarn build --ignore docs --include-dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ module.exports = { | |
lines: 80, | ||
}, | ||
}, | ||
tsConfig: '<rootDir>/tsconfig.test.json', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "@tsconfig/recommended", | ||
"compilerOptions": { | ||
"plugins": [ | ||
{ | ||
"name": "typescript-tslint-plugin" | ||
} | ||
], | ||
"declaration": true, | ||
"rootDir": ".", | ||
"outDir": "lib" | ||
}, | ||
"exclude": ["node_modules", "lib", "dist", "coverage"], | ||
"include": ["test", "src", "index.d.ts"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.