-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: yarn install+build+lint+test action using for core
- Loading branch information
Showing
3 changed files
with
51 additions
and
28 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,33 @@ | ||
name: Yarn Install Build Test and Lint | ||
|
||
inputs: | ||
cache_id: | ||
description: ID to use in order to cache yarn install | ||
required: true | ||
working_dir: | ||
description: Directory in which to perform the yarn tasks | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ inputs.cache_id }}-${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
|
||
- name: Install modules | ||
run: yarn install | ||
working-directory: ${{ inputs.working_dir }} | ||
|
||
- name: Build TypeScript | ||
run: yarn build | ||
working-directory: ${{ inputs.working_dir }} | ||
|
||
- name: Test TypeScript | ||
run: yarn test | ||
working-directory: ${{ inputs.working_dir }} | ||
|
||
- name: Lint TypeScript | ||
run: yarn lint | ||
working-directory: ${{ inputs.working_dir }} |
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,18 @@ | ||
name: SDK Core | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build-lint-and-test-core: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: ./.github/actions/yarn-install-and-verify | ||
with: | ||
cache_id: sdk-core | ||
working_dir: ./core/js |
This file was deleted.
Oops, something went wrong.