Skip to content

fix(host-image): fit host-image use nbd export disks #129

fix(host-image): fit host-image use nbd export disks

fix(host-image): fit host-image use nbd export disks #129

name: Building and test for PR
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.18'
# - name: Install check tools
# shell: bash
# run: |
# set -o xtrace
# git clone --branch yun --depth 4 https://github.com/yousong/tools && cd tools
# go build ./cmd/goimports && sudo cp goimports /usr/bin/ && cd .. && rm -rf tools
# git clone --depth 4 https://github.com/yousong/y18n && cd y18n
# go build . && sudo cp y18n /usr/bin && cd .. && rm -rf y18n
- name: Test and build
shell: bash
run: |
set -o xtrace
export GO111MODULE=on
# make check
make
ls -lh _output/bin