Skip to content

Commit f35f71c

Browse files
committed
refactor: modernize repo structure and config
- is now a Yarn Workspace with an offline cache - nests the prototype code in a package as a temporary measure. - removes Jenkins in favour of GH Actions - Adds a docker-compose file with cardano-node-ogmios
1 parent b392ef0 commit f35f71c

File tree

388 files changed

+3062
-4931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+3062
-4931
lines changed

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.eslintrc.js
2+
*.d.ts
3+
graphql_types.ts
4+
*jest.config.js

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
"parser": "@typescript-eslint/parser",
3+
"extends": [
4+
"standard"
5+
],
6+
"plugins": [
7+
"@typescript-eslint"
8+
],
9+
"rules": {
10+
"no-unused-vars": 0,
11+
"linebreak-style": [
12+
2,
13+
"unix"
14+
],
15+
"no-unused-expressions": 0,
16+
"no-useless-constructor": 0
17+
}
18+
}

.github/images/cardano-logo.png

10.6 KB
Loading
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
branches: [ "master" ]
6+
push:
7+
branches: [ "master" ]
8+
tags: [ "*.*.*" ]
9+
10+
jobs:
11+
build_and_test:
12+
strategy:
13+
matrix:
14+
os: [ ubuntu-20.04 ]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- name: 📥 Checkout repository
18+
uses: actions/[email protected]
19+
with:
20+
submodules: true
21+
22+
- name: 🧰 Setup Node.js
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: 14.4
26+
27+
- name: ↪ Set package version
28+
id: package-version
29+
uses: martinbeentjes/npm-get-version-action@master
30+
with:
31+
path: clients/TypeScript
32+
33+
- name: 🔨 Build
34+
working-directory: clients/TypeScript
35+
run: |
36+
yarn install --frozen-lockfile --non-interactive --logevel=error
37+
yarn generate-schema-types
38+
yarn build
39+
yarn lint
40+
41+
- name: 🔬 Test
42+
if: matrix.network == 'testnet'
43+
working-directory: clients/TypeScript
44+
run: |
45+
docker run -d --name cardano-node-ogmios -p 1338:1337 -v ${{ runner.temp }}/db-${{ matrix.network }}:/db cardanosolutions/cardano-node-ogmios:${{ github.sha }}-${{ matrix.network }}
46+
../../scripts/wait-for-sync.sh 1338 1
47+
yarn test
48+
docker stop cardano-node-ogmios
49+
docker rm cardano-node-ogmios
50+
51+
- name: 📦 Pack
52+
run: |
53+
./scripts/pack.sh
54+
55+
- name: 📤 Upload npm packages
56+
uses: actions/upload-artifact@v2
57+
with:
58+
name: cardano-ogmios-clients-ts-packages
59+
path: |
60+
packages/prototype/cardano-js-sdk-prototype-${{ steps.package-version.outputs.current-version}}.tgz

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
11
node_modules
2-
dist
3-
tsconfig.tsbuildinfo
4-
.nyc_output
5-
coverage
6-
documentation

.idea/.gitignore

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/cardano-js-sdk.iml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)