Skip to content

chore: updating build environment #25

chore: updating build environment

chore: updating build environment #25

Workflow file for this run

name: CI/CD

Check failure on line 1 in .github/workflows/cicd.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cicd.yaml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
on:
push:
tags:
- v*
branches:
- main
pull_request:
branches:
- main
jobs:
setup:
runs-on: ubuntu-latest
steps:
name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: >-
${{ runner.os }}-build-${{ env.cache-name }}-${{
hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-
unit-tests:
runs-on: ubuntu-latest
needs: setup
permissions:
contents: read
pull-requests: write
steps:
name: Report Coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
file-coverage-mode: all
deploy-to-docker:
runs-on: ubuntu-latest
needs:
- setup
- unit-tests
steps:
name: Call deployment webhook if it exists
env:
url: ${{ secrets.DEPLOYMENT_WEBHOOK }}
if: ${{ env.url != '' }}
run: |-
sed s/https/http/ <<< $url
curl -X POST $url