-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
147 additions
and
72 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,16 @@ | ||
name: cache-npm | ||
description: Cache NPM | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache NPM | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-npm | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- |
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: setup-node | ||
description: Setup nodejs | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache NPM | ||
uses: .github/actions/cache-npm | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Node version | ||
shell: bash | ||
run: node --version | ||
|
||
- name: Install NPM dependencies | ||
shell: bash | ||
run: npm install --legacy-peer-deps |
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,37 @@ | ||
name: setup-dotnet | ||
description: Setup .NET Core | ||
|
||
inputs: | ||
version: | ||
description: 'Required dotnet version' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache Paket | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.paket/ | ||
paket-files/ | ||
packages/ | ||
key: ${{ runner.os }}-paket-${{ hashFiles('**/paket.lock') }} | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: ${{ inputs.version }} | ||
|
||
- name: .NET version | ||
shell: bash | ||
run: dotnet --info | ||
|
||
- name: Restore dotnet tools | ||
shell: bash | ||
run: dotnet tool restore | ||
|
||
- name: Paket restore | ||
shell: bash | ||
run: dotnet paket restore |
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,16 @@ | ||
name: cache-npm | ||
description: Cache NPM | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache NPM | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-npm | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- |
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: setup-node | ||
description: Setup nodejs | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache NPM | ||
uses: .github/actions/cache-npm | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Node version | ||
shell: bash | ||
run: node --version | ||
|
||
- name: Install NPM dependencies | ||
shell: bash | ||
run: npm install --legacy-peer-deps |
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,24 @@ | ||
name: setup-python | ||
description: Setup Python | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Cache pip | ||
uses: .github/actions/cache-pip | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Python version | ||
shell: bash | ||
run: python --version | ||
|
||
- name: Install Python dependencies | ||
shell: bash | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install requests markdown argparse |
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