Skip to content

Commit

Permalink
Merge pull request #1691 from aeternity/release/13.0.0
Browse files Browse the repository at this point in the history
Release 13.0.0
  • Loading branch information
davidyuk authored Apr 8, 2023
2 parents a4df699 + 09e556a commit 79a2c5a
Show file tree
Hide file tree
Showing 223 changed files with 14,249 additions and 18,904 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
NODE_TAG=v6.5.2
COMPILER_TAG=v6.1.0
NODE_TAG=v6.8.0
COMPILER_TAG=v7.2.0
4 changes: 3 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ module.exports = {
'@typescript-eslint',
'rulesdir',
],
ignorePatterns: ['dist', 'es', 'src/apis', 'docs/api'],
ignorePatterns: [
'dist', 'es', 'src/apis', 'docs/api', 'test/environment/ledger/browser', 'types-legacy',
],
rules: {
'rulesdir/tsdoc-syntax': 'error',
'no-spaced-func': 'off',
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "CodeQL"

on:
push:
branches: [ "develop", "master" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: "59 6 * * 2"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ javascript ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
18 changes: 11 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ name: Test & build
on: [push, pull_request]
jobs:
main:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- run: |
wget -q https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
sudo apt install --allow-downgrades ./esl-erlang_25.0.4-1~ubuntu~jammy_amd64.deb
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 18.x
- uses: actions/cache@v3
with:
path: |
~/.npm
~/.autorest
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- run: npm ci --ignore-scripts
- run: npm ci
- name: Run Commitlint
env:
EVENT_TYPE: ${{ github.event_name }}
Expand All @@ -28,16 +31,17 @@ jobs:
else
npx commitlint --from $BASE --to $HEAD --verbose
fi
- run: npm run build
- run: npm run lint
- run: docker-compose up -d
- name: Ensure that node is running
run: |
while [[ `curl -s -o /dev/null -w %{http_code} localhost:3013/api` != 200 ]]; do
sleep 0.2;
done
- run: npm run test
- run: npm run report-coverage
if: always()
- run: npx nyc npm run test
- run: npx nyc report --reporter=text-lcov > coverage.lcov
- uses: codecov/codecov-action@v3
with:
files: coverage.lcov
- run: docker-compose logs
if: always()
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ debug/
/coverage
coverage.*
.nyc_output/
/examples/**/package-lock.json
/examples/**/dist
/**/package-lock.json
/**/dist
/examples/**/artifacts
.history
.site
site
/src/apis/
/src/tx/builder/schema.generated.ts
/tooling/autorest/compiler-swagger.yaml
/test/environment/ledger/browser
/types-legacy
/bin
6 changes: 2 additions & 4 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
module.exports = {
require: [
'@babel/register',
'ts-node/register'
],
require: 'tooling/babel-register.js',
recursive: true,
extension: '.js,.ts',
timeout: '40s',
ignore: 'test/environment/**',
exit: true // TODO: fix in state channel tests
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ JavaScript SDK for the revolutionary [æternity] blockchain, targeting the
## Guides & Examples

Introduction
- [Installation](docs/index.md)
- [Installation](docs/README.md)
- [Quick Start](docs/quick-start.md)

Usage guides:
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ module.exports = {
presets: [
['@babel/preset-env', {
include: [
// compatibility with create-react-app@4
'@babel/plugin-proposal-nullish-coalescing-operator',
// compatibility with [email protected]
'@babel/plugin-proposal-logical-assignment-operators',
// compatibility with @vue/cli@4
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-private-methods',
],
}],
'@babel/preset-typescript',
],
plugins: [
['@babel/plugin-transform-runtime', { corejs: 3 }],
'babel-plugin-transform-import-meta',
],
};
1 change: 1 addition & 0 deletions babel.esm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ config.plugins.push(
}],
['transform-default-named-imports'],
);
config.plugins = config.plugins.filter((p) => p !== 'babel-plugin-transform-import-meta');

module.exports = config;
2 changes: 2 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ module.exports = {
2,
'always',
[
'account',
'aens',
'aepp',
'chain',
'channel',
'compiler',
'contract',
'deps',
'deps-dev',
'node',
'oracle',
'release',
Expand Down
2 changes: 1 addition & 1 deletion docker/accounts_test.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ak_2dATVcZ9KJU5a8hdsVtTv21pYiGWiPbmVcU1Pz72FFqpk9pSRR": 100000000000000000000000000000000000000000
"ak_21A27UVVt3hDkBE5J7rhhqnH5YNb4Y1dqo4PnSybrH85pnWo7E": 100000000000000000000000000000000000000000
}
2 changes: 1 addition & 1 deletion docker/aeternity_node_mean16.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ chain:
persist: false
hard_forks:
"1": 0
"5": 1
"6": 1

mining:
autostart: true
Expand Down
Loading

0 comments on commit 79a2c5a

Please sign in to comment.