vega-frontend-monorepo/.github/workflows/test.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

Add capsule workflow (#278) * begin capsule workflow * remove workflow file we don't want to run while debugging * vheckout all require repos * checkout repos to a directory each * correct branch names * rename workflow * fix incorrecr branch name * begin building binaries * typo * remove tests we don't want running while debugging * remove tests we don't want running while debugging * typo * incorrect path * comment out frontend checkout * don't install as not done in example script * add required environement variables * change paths * comment out FEM checkout * check binary built properly * path stuff * silly mistake * use relaive path * correct working directory * fix all paths * debugging * bump go verion * fix path * fix all paths * fix cannot find config error * add back in fe stuff * move cehckout to where it is used * revert accidentally committed change * try install over build * use v3 of action * export as per action * debugging * don't pass path to install * chnage go install * change order * pwd * pwd * see what happens without dn * don't use relative path * build correct paths * remove checks as working * make epxlorer run against locla capsule * fix incorrect env file * fix tests * fixing tests * trying for green run * trying for green run * bump timeout * check tm endpoints * configure to use the second tender mint node * ci: add logs out * ci: change paht * ci: set env var correctly * ci: remove wait for blockChain request * ci: make test value assertions more robust * ci: make test value assertions more robust * chore: minor typo * ci: add back test and lint scripts * ci: comment out unused pipeline for now * ci: break up job into steps * ci: run all tests and pray it works * ci: just use local vega wallet * ci: not building it any more, use go installed bin * ci: derive hashes properly * ci: move existing folow into nightly * ci: run nightly for all tests * ci: use install bins * ci: add missing flag * ci: gobin * ci: debugging * ci: echo gopath * ci: wrong syntax? * ci: one last time? * ci: try something else * ci: try other things * ci: again * ci: move var to github env * ci: set gobin * ci: syntax * ci: test out nightly * ci: switch back nightly to posix * ci: force network bootstrap * ci: fix stupid mistake, pass falg to command not name * ci: put test back * ci: run on push as well as on pr * ci: always upload logs if possible * ci: import config from capsule rather than testnet * Update apps/explorer-e2e/cypress.json * test: fix failing test now we are using binaries * ci: correct URL
2022-05-25 10:05:13 +00:00
name: Unit tests & build
on:
push:
branches:
- develop
- main
pull_request:
jobs:
pr:
name: Test and lint - PR
runs-on: ubuntu-latest
2022-09-02 13:00:29 +00:00
permissions:
contents: 'read'
actions: 'read'
steps:
- name: Checkout
2022-09-02 13:00:29 +00:00
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: ${{ github.base_ref }}
- name: Use Node.js 16
id: Node
2022-09-02 13:00:29 +00:00
uses: actions/setup-node@v3
with:
node-version: 16.14.0
- name: Restore node_modules from cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: node_modules-${{ hashFiles('**/yarn.lock') }}
- name: Install root dependencies
run: yarn install --frozen-lockfile
- name: Check formatting
run: yarn nx format:check
- name: Lint affected
2022-03-31 15:42:12 +00:00
run: yarn nx affected:lint --max-warnings=0
- name: Test affected
run: yarn nx affected:test
- name: Build affected
run: yarn nx affected:build