Compare commits
9 Commits
renovate/w
...
master
Author | SHA1 | Date | |
---|---|---|---|
4ca45c1ad3 | |||
bed24d7501 | |||
37497b49a4 | |||
ddaa9350cb | |||
bc6f87139c | |||
88df0e5a7d | |||
1506846686 | |||
beadc884fc | |||
49380e3b2a |
@ -96,7 +96,7 @@ jobs:
|
||||
|
||||
- name: pin
|
||||
id: pin
|
||||
uses: docker://gitea.bruyant.xyz/alexandre/ipfs-node-pin:1.0.1
|
||||
uses: docker://gitea.bruyant.xyz/alexandre/ipfs-node-pin:1.0.2
|
||||
with:
|
||||
ipfs_host: "ipfs-api.ipfs.svc"
|
||||
ipfs_port: "5001"
|
||||
|
80
.gitea/workflows/pr_check.yaml
Normal file
80
.gitea/workflows/pr_check.yaml
Normal file
@ -0,0 +1,80 @@
|
||||
name: PR build
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-wasm:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
working_directory: "./src"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: 1.21
|
||||
|
||||
- name: Build
|
||||
run: go build -v -o main.wasm ./...
|
||||
working-directory: ${{env.working_directory}}
|
||||
env:
|
||||
GOOS: js
|
||||
GOARCH: wasm
|
||||
|
||||
- name: Upload wasm file
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: wasm
|
||||
path: ${{env.working_directory}}/main.wasm
|
||||
|
||||
build-react:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
working_directory: "./client"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v4.1.0
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: NPM CI
|
||||
working-directory: ${{env.working_directory}}
|
||||
run: npm ci
|
||||
|
||||
- name: React build
|
||||
working-directory: ${{env.working_directory}}
|
||||
run: npm run build
|
||||
|
||||
- name: Upload react client
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: react-app
|
||||
path: ${{env.working_directory}}/build
|
||||
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-wasm, build-react]
|
||||
env:
|
||||
working_directory: "./client"
|
||||
steps:
|
||||
- name: Download React app
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: react-app
|
||||
path: app
|
||||
|
||||
- name: Download WASM program
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: wasm
|
||||
path: app
|
||||
|
||||
- name: Upload react app
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: react-app-wasm
|
||||
path: app
|
15306
client/package-lock.json
generated
15306
client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@
|
||||
"react-dom": "^18.1.0",
|
||||
"react-scripts": "next",
|
||||
"typescript": "^4.6.4",
|
||||
"web-vitals": "^4.0.0"
|
||||
"web-vitals": "^2.1.4"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "BROWSER=none react-scripts start",
|
||||
|
Loading…
Reference in New Issue
Block a user