-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add freebsd-vm action and delete origin one
- Loading branch information
1 parent
4a1ca4b
commit f163e68
Showing
2 changed files
with
46 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
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: | | ||
ls | ||
pkg -v | ||
pkg install -y curl | ||
pkg install -y node | ||
pkg install -y npm | ||
npm -v | ||
cd work | ||
ls | ||
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 |