diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 00000000..9ba2f254 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,31 @@ +name: Test +run-name: test +on: [push] +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: + go-version: 1.19.x + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + # Version Spec of the version to use in SemVer notation. + # It also emits such aliases as lts, latest, nightly and canary builds + # Examples: 12.x, 10.15.1, >=10.15.0, lts/Hydrogen, 16-nightly, latest, node + node-version: '14.20' + - name: Install requirements + run: | + go get -t ./... + make install-linters + npm install + - name: make check + run: make check + - name: make lint-ts + run: make lint-ts + - name: make build-ng + run: make build-ng + - name: make check-ui + run: make check-ui + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e9faf68c..00000000 --- a/.travis.yml +++ /dev/null @@ -1,32 +0,0 @@ -language: go -dist: xenial - -go: - - "1.18.x" - -env: - - SKYCOIN_ADDR=http://172.17.0.2:6420 - -services: - - docker - -addons: - chrome: stable - -before_install: - - nvm install 14.20 - -install: - - go get -t ./... - - make install-linters - - npm install - -script: - - make check - - make lint-ts - - make build-ng - - make check-ui - -notifications: - # https://github.com/kvld/travisci-telegram TravisCI Telegram Bot integration - webhooks: https://fathomless-fjord-24024.herokuapp.com/notify diff --git a/angular.json b/angular.json index 89c1a435..d40af891 100644 --- a/angular.json +++ b/angular.json @@ -134,6 +134,7 @@ "cli": { "schematicCollections": [ "@angular-eslint/schematics" - ] + ], + "analytics": false } } diff --git a/docker/images/Dockerfile b/docker/images/Dockerfile index d15eca3c..f1f321b6 100644 --- a/docker/images/Dockerfile +++ b/docker/images/Dockerfile @@ -1,6 +1,6 @@ # skycoin build # reference https://github.com/skycoin/skycoin -FROM golang:1.10.2-stretch AS build +FROM --platform=linux/amd64 golang:1.10.2-stretch AS build # dirs RUN mkdir -p $GOPATH/src/github.com/skycoin/ @@ -17,8 +17,8 @@ RUN ln -sf /bin/bash /bin/sh # install node, explorer dependencies build Angular's project RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash && \ source /root/.profile && \ - nvm install 10.16 && \ - nvm use 10.16 && \ + nvm install 14.20 && \ + nvm use 14.20 && \ cd $GOPATH/src/github.com/skycoin/skycoin-explorer && \ npm install && \ npm run build diff --git a/e2e/test-fixtures/blockchain-180.db b/e2e/test-fixtures/blockchain-180.db index 2a80bf2f..59ab8fa8 100755 Binary files a/e2e/test-fixtures/blockchain-180.db and b/e2e/test-fixtures/blockchain-180.db differ