forgejo test
Some checks failed
/ deploy (push) Failing after 25s

This commit is contained in:
Jonatan Nilsson 2024-11-10 00:29:08 +00:00
parent ee0326c9f4
commit 3e69b70675
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,27 @@
on:
push:
branches:
- master
jobs:
deploy:
runs-on: arch
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: npm install
- name: Run Tests
run: npm run test -- --ignore-only
- name: Deply
run: |
CURR_VER=$(cat package.json | jq -r .version)
echo "Checking https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases for version v${CURR_VER}"
curl -s -X GET -H "Authorization: token $deploytoken" https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases | grep -o "\"name\"\:\"v${CURR_VER}\"" > /dev/null
if [ $? -eq 0 ] ; then
echo "Release already exists, nothing to do.";
else
echo "Creating release on gitea"
fi

View file

@ -4,7 +4,7 @@
"description": "Flaska is a micro web-framework for node. It is designed to be fast, simple and lightweight, and is distributed as a single file module with no dependencies.",
"main": "flaska.mjs",
"scripts": {
"test": "eltro",
"test": "eltro -r dot",
"test:watch": "eltro -r dot -w test"
},
"watch": {