Skip to content

adding integration tests #37

adding integration tests

adding integration tests #37

Workflow file for this run

name: Makefile CI
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: setup node
with:
node-version: 20
- name: Build
run: make build
- uses: actions/upload-artifact@master
with:
name: node-modules
path: node_modules/
- uses: actions/upload-artifact@master
with:
name: php-vendor
path: vendor/
- uses: actions/upload-artifact@master
with:
name: package-lock.json
path: package-lock.json
- uses: actions/upload-artifact@master
with:
name: composer.lock
path: composer.lock
test:
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: setup node
with:
node-version: 20
- uses: actions/download-artifact@master
with:
name: node-modules
path: node_modules/
- uses: actions/download-artifact@master
with:
name: php-vendor
path: vendor/
- uses: actions/download-artifact@master
with:
name: package-lock.json
path: package-lock.json
- uses: actions/download-artifact@master
with:
name: composer.lock
path: composer.lock
- uses: docker-practice/actions-setup-docker@master
- name: install nextcloud
run: ./install.sh
- uses: actions/upload-artifact@master
with:
name: build-dir
path: build/
release:
needs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: setup node
with:
node-version: 20
- uses: actions/download-artifact@master
with:
name: node-modules
path: node_modules/
- uses: actions/download-artifact@master
with:
name: php-vendor
path: vendor/
- uses: actions/download-artifact@master
with:
name: build-dir
path: build/
- uses: actions/download-artifact@master
with:
name: package-lock.json
path: package-lock.json
- uses: actions/download-artifact@master
with:
name: composer.lock
path: composer.lock
- uses: actions/download-artifact@master
with:
name: build-dir
path: build/
- name: replace version
if: startsWith(github.ref, 'refs/tags/')
run: |
RELEASE_VERSION=${GITHUB_REF#refs/tags/}
sed -i "s/<version>0.0.0<\/version>/<version>$RELEASE_VERSION<\/version>/g" ./appinfo/info.xml
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/artifacts/*