-
Notifications
You must be signed in to change notification settings - Fork 43
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
1 parent
b9ed59a
commit 1f33e14
Showing
1 changed file
with
23 additions
and
26 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 |
---|---|---|
@@ -1,29 +1,26 @@ | ||
name: Install gauntlet dependencies | ||
description: A GitHub Action to get tool versions and build Gauntlet | ||
|
||
jobs: | ||
tool_versions: | ||
name: Get the tool versions | ||
runs-on: ubuntu-latest | ||
outputs: | ||
nodejs_version: ${{ steps.tool-versions.outputs.nodejs_version }} | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: smartcontractkit/[email protected] | ||
id: tool-versions | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
gauntlet_build: | ||
name: Gauntlet Build | ||
runs-on: ubuntu-latest | ||
needs: [tool_versions] | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Setup Node ${{ needs.tool_versions.outputs.nodejs_version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ needs.tool_versions.outputs.nodejs_version }} | ||
- name: Install | ||
run: yarn --cwd ./gauntlet install --frozen-lockfile | ||
- name: Build | ||
run: yarn --cwd ./gauntlet build | ||
- name: Run Gauntlet | ||
run: yarn --cwd ./gauntlet gauntlet | ||
- name: Get Tool Versions | ||
uses: smartcontractkit/[email protected] | ||
id: tool-versions | ||
|
||
- name: Setup Node ${{ steps.tool-versions.outputs.nodejs_version }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ steps.tool-versions.outputs.nodejs_version }} | ||
|
||
- name: Install Dependencies | ||
run: yarn --cwd ./gauntlet install --frozen-lockfile | ||
|
||
- name: Build Gauntlet | ||
run: yarn --cwd ./gauntlet build | ||
|
||
- name: Run Gauntlet | ||
run: yarn --cwd ./gauntlet gauntlet |