Skip to content

Commit

Permalink
Fix Docker builds and add Github actions workflow
Browse files Browse the repository at this point in the history
Updated nvm version in Docker image and added arg to
build specifically for Linux/Amd64 to avoid having
an exec error on run in deployment.
  • Loading branch information
rkmpa committed Aug 1, 2023
1 parent 5409e9a commit d997109
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
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
- name: Install requirements
run: |
nvm install 14.20
go get -t ./...
make install-linters
npn 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

3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"cli": {
"schematicCollections": [
"@angular-eslint/schematics"
]
],
"analytics": false
}
}
6 changes: 3 additions & 3 deletions docker/images/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/

Expand All @@ -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
Expand Down
Binary file modified e2e/test-fixtures/blockchain-180.db
Binary file not shown.

0 comments on commit d997109

Please sign in to comment.