Skip to content

Commit

Permalink
Move build-test-explorer job in ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Jan 10, 2024
1 parent 96aad37 commit 0b2d1af
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 39 deletions.
40 changes: 39 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,45 @@ jobs:
!./artifacts/devnet/cardano-cli
!./artifacts/devnet/cardano-node
if-no-files-found: error


build-test-explorer:
runs-on: ubuntu-22.04
needs: [ build-ubuntu-X64 ]
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: mithril-explorer/yarn.lock

- name: Install dependencies
working-directory: mithril-explorer
run: yarn install --frozen-lockfile

- name: Test explorer
working-directory: mithril-explorer
run: make test

- name: Check explorer
working-directory: mithril-explorer
run: make lint

- name: Build Explorer
working-directory: mithril-explorer
run: make build

- name: Publish Explorer build
uses: actions/upload-artifact@v3
with:
name: explorer-build
if-no-files-found: error
path: |
mithril-explorer/out/*
publish-tests-results:
if: success() || failure()
runs-on: ubuntu-22.04
Expand Down
39 changes: 1 addition & 38 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Documentations & Explorer
name: Documentations

on:
push:
Expand Down Expand Up @@ -84,43 +84,6 @@ jobs:
path: |
docs/website/build/*
build-test-explorer:
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: mithril-explorer/yarn.lock

- name: Install dependencies
working-directory: mithril-explorer
run: yarn install --frozen-lockfile

- name: Test explorer
working-directory: mithril-explorer
run: make test

- name: Check explorer
working-directory: mithril-explorer
run: make lint

- name: Build Explorer
working-directory: mithril-explorer
run: make build

- name: Publish Explorer build
uses: actions/upload-artifact@v3
with:
name: explorer-build
if-no-files-found: error
path: |
mithril-explorer/out/*
build-open-api-ui:
runs-on: ubuntu-22.04
steps:
Expand Down

0 comments on commit 0b2d1af

Please sign in to comment.