repod/.gitea/workflows/repod.yml

50 lines
1.5 KiB
YAML
Raw Normal View History

2023-06-27 12:47:16 +00:00
name: repod
on: [push]
jobs:
2023-06-27 12:52:09 +00:00
nextcloud-25:
2023-06-27 12:47:16 +00:00
runs-on: ubuntu-latest
container: nextcloud:25
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
- run: chmod +x /usr/local/bin/composer
- run: composer install
- run: composer run lint
- run: composer run cs:check
- run: composer run psalm:check
nextcloud-27:
runs-on: ubuntu-latest
2023-07-02 14:56:58 +00:00
container: nextcloud:27
2023-06-27 12:47:16 +00:00
steps:
- run: apt-get update
- run: apt-get install -y git nodejs
- uses: actions/checkout@v3
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
- run: chmod +x /usr/local/bin/composer
- run: composer install
- run: composer run lint
- run: composer run cs:check
- run: composer run psalm:check
nodejs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-07-02 14:32:05 +00:00
- uses: skjnldsv/read-package-engines-version-actions@v2
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
2023-06-27 12:52:09 +00:00
- run: npm ci
2023-06-27 12:47:16 +00:00
- run: npm run lint
- run: npm run stylelint
- run: npm run build