Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ jobs:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- uses: actions/cache@v3
env:
cache-name: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: "web/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Install modules
run: yarn
working-directory: ./web
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
env:
cache-name: npm-cache
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: "web/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-

- name: Set release version
run: |
Expand All @@ -53,7 +57,7 @@ jobs:
with:
images: |
x1unix/go-playground
ghcr.io/x1unix/go-playground/go-playground
ghcr.io/${{ github.repository }}/go-playground
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
Expand All @@ -65,14 +69,13 @@ jobs:
id: buildx
uses: docker/setup-buildx-action@v2

- name: Build frontend
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 'lts/gallium'
cache: 'yarn'
cache-dependency-path: "${{ github.workspace }}/web"

- run: |
yarn --cwd='${{ github.workspace }}/work' install --silent && yarn --cwd='${{ github.workspace }}/work' build
yarn install --silent && yarn build
working-directory: ./web
env:
NODE_ENV: "production"
REACT_APP_VERSION: "${{ env.RELEASE_VERSION }}"
Expand All @@ -91,5 +94,6 @@ jobs:
build-args: |
APP_VERSION=${{ env.RELEASE_VERSION }}
push: true

- name: Print image digest
run: echo ${{ steps.docker_build.outputs.digest }}
1 change: 0 additions & 1 deletion web/src/lib/gowasm/bindings/browserfs/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
SliceHeader,
SliceHeaderType,
StackReader,
stringDecoder,
stringEncoder,
} from '~/lib/go';
import {Errno, SyscallError} from '~/lib/go/pkg/syscall';
Expand Down