Skip to content

Commit

Permalink
Run TypeScript tests as part of continuous integration.
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed May 14, 2021
1 parent be8024b commit f3ae39b
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-20.04 ]
network: [ testnet ]
runs-on: ${{ matrix.os }}
steps:
- name: 📥 Checkout repository
Expand All @@ -59,21 +60,45 @@ jobs:
with:
node-version: 14.4

- name: 🐳 Cache Docker Volumes
id: cache
uses: actions/cache@v2.1.1
with:
path: ./data
key: cardano-node-${{ matrix.network }}-nightly

- name: 🩹 Overwrite docker-compose.yml
shell: bash
run: |
sed -i "s@node-db:/data@./data:/data@" docker-compose.yml
- name: ↪ Set package version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: clients/TypeScript

- name: 🔨 Build & Pack #& Test
- name: 🔨 Build
working-directory: clients/TypeScript
run: |
yarn install --frozen-lockfile --non-interactive --logevel=error
yarn generate-schema-types
yarn build
yarn lint
- name: 🔬 Test
if: matrix.network == 'testnet'
working-directory: clients/TypeScript
run: |
yarn testnet:up
./scripts/wait-for-sync.sh 1338 1
yarn test
yarn testnet:down
- name: 📦 Pack
working-directory: clients/TypeScript
run: |
./scripts/pack.sh
# yarn test
- name: 📤 Upload npm packages
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit f3ae39b

Please sign in to comment.