Skip to content

tmp6

tmp6 #10

Workflow file for this run

name: Test
on:
push:
branches:
- freebsd-vm
jobs:
test:
runs-on: ubuntu-latest
name: A job to run test in FreeBSD
env:
MYTOKEN: ${{ secrets.MYTOKEN }}
MYTOKEN2: "value2"
steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
release: '14.0'
envs: 'MYTOKEN MYTOKEN2'
usesh: true
prepare: |
pkg -v
pkg install -y curl
pkg install -y node
pkg install -y npm
npm -v
echo "apple ///////////////////////////"
ls -alh
cd /home/runner/work/FreeBSD-Online-Document-Editor
ls -alh
cd FreeBSD-Online-Document-Editor
ls -alh
npm install
npm run build
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git fetch origin build:build
git checkout -B build origin/build
find . -maxdepth 1 -mindepth 1 ! -name 'build' ! -name '.git' -exec rm -rf {} \;
mv build/* .
rm -rf build
git add .
git commit -m "Auto-generated build files"
git push origin build