Merge pull request #94 from onflow/jp-fix-block-explorer-links #295
Workflow file for this run
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
name: CI | |
on: | |
- push | |
- pull_request | |
jobs: | |
V2-Integration-Tests: | |
name: NFTStorefront V2 Integration Tests | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ["1.16"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 15.0.0 | |
cache: 'npm' | |
cache-dependency-path: lib/js/test/package-lock.json | |
- name: Install Flow CLI | |
run: sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v0.43.0 | |
- name: Flow cli Version | |
run: flow version | |
- name: Update PATH | |
run: echo "/root/.local/bin" >> $GITHUB_PATH | |
- name: Install dependencies | |
run: cd lib/js/test && npm ci | |
- name: Run tests | |
run: cd lib/js/test && npm run test | |
V1-Integration-Tests: | |
name: NFTStorefront V1 Integration Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '1.16' | |
- uses: actions/cache@v1 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- run: make ci | |