forked from DMXStage/dmxconnect
test node installation
This commit is contained in:
22
.gitea/workflows/build.yaml
Normal file
22
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Build software
|
||||
run-name: ${{ github.actor }} is testing out Gitea Actions 🚀
|
||||
on: [push]
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "🎉 Installing the environment..."
|
||||
- run: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
|
||||
- run: nvm install 20
|
||||
- run: node -v
|
||||
- run: npm -v
|
||||
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
|
||||
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ github.workspace }}
|
||||
- run: echo "🍏 Job finished with status ${{ job.status }}."
|
||||
33
Taskfile.yml
Normal file
33
Taskfile.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
# Get the application name
|
||||
repo_name:
|
||||
sh: basename `git config --get remote.origin.url` .git
|
||||
repo_version:
|
||||
sh: |
|
||||
tag=$(git describe --tags --abbrev=0 2>/dev/null || true)
|
||||
if [ -z "$tag" ]; then
|
||||
git rev-parse HEAD
|
||||
else
|
||||
echo $tag
|
||||
fi
|
||||
|
||||
tasks:
|
||||
# Installing the dependencies to develop dmxconnect
|
||||
install:
|
||||
cmds:
|
||||
- echo "Installing dependencies to contribute to {{.repo_name}}..."
|
||||
silent: true
|
||||
|
||||
# Running the application
|
||||
run:
|
||||
cmds:
|
||||
- echo "Running {{.repo_name}}..."
|
||||
silent: true
|
||||
|
||||
# Building the application
|
||||
build:
|
||||
cmds:
|
||||
- echo "Generating {{.repo_name}}_v{{.repo_version}}.deb ..."
|
||||
silent: true
|
||||
Reference in New Issue
Block a user