-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(CI): Update master php testing versions and workflow templates
Signed-off-by: Joas Schilling <[email protected]>
- Loading branch information
1 parent
ad5a8a8
commit 6ea9af2
Showing
17 changed files
with
311 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,43 +18,43 @@ jobs: | |
|
||
steps: | ||
- name: Check actor permission | ||
uses: skjnldsv/check-actor-permission@v2 | ||
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1 | ||
with: | ||
require: write | ||
|
||
- name: Add reaction on start | ||
uses: peter-evans/create-or-update-comment@v1 | ||
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808 # v2.1.0 | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
repository: ${{ github.event.repository.full_name }} | ||
comment-id: ${{ github.event.comment.id }} | ||
reaction-type: "+1" | ||
|
||
- name: Parse command | ||
uses: skjnldsv/parse-command-comment@master | ||
uses: skjnldsv/parse-command-comment@e9cb9d1df338afed4295a59bbe27b4da53fd38a8 # master | ||
id: command | ||
|
||
# Init path depending on which command is run | ||
- name: Init path | ||
id: git-path | ||
run: | | ||
run: | | ||
if ${{ startsWith(steps.command.outputs.arg1, '/') }}; then | ||
echo "::set-output name=path::${{ github.workspace }}${{steps.command.outputs.arg1}}" | ||
echo "path=${{ github.workspace }}${{steps.command.outputs.arg1}}" >> $GITHUB_OUTPUT | ||
else | ||
echo "::set-output name=path::${{ github.workspace }}${{steps.command.outputs.arg2}}" | ||
echo "path=${{ github.workspace }}${{steps.command.outputs.arg2}}" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Init branch | ||
uses: xt0rted/pull-request-comment-branch@v1 | ||
uses: xt0rted/pull-request-comment-branch@653a7d5ca8bd91d3c5cb83286063314d0b063b8e # v1 | ||
id: comment-branch | ||
|
||
process: | ||
runs-on: ubuntu-latest | ||
needs: init | ||
|
||
steps: | ||
- name: Checkout ${{ needs.init.outputs.head_ref }} | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
fetch-depth: 0 | ||
|
@@ -66,14 +66,14 @@ jobs: | |
git config --local user.name "nextcloud-command" | ||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2 | ||
id: package-engines-versions | ||
with: | ||
fallbackNode: '^12' | ||
fallbackNpm: '^6' | ||
fallbackNode: '^16' | ||
fallbackNpm: '^7' | ||
|
||
- name: Set up node ${{ steps.package-engines-versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3 | ||
with: | ||
node-version: ${{ steps.package-engines-versions.outputs.nodeVersion }} | ||
cache: npm | ||
|
@@ -108,7 +108,7 @@ jobs: | |
git push --force origin ${{ needs.init.outputs.head_ref }} | ||
- name: Add reaction on failure | ||
uses: peter-evans/create-or-update-comment@v1 | ||
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808 # v2.1.0 | ||
if: failure() | ||
with: | ||
token: ${{ secrets.COMMAND_BOT_PAT }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow is provided via the organization template repository | ||
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
# | ||
# Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
|
||
name: Lint | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '.github/workflows/**' | ||
- 'src/**' | ||
- 'appinfo/info.xml' | ||
- 'package.json' | ||
- 'package-lock.json' | ||
- 'tsconfig.json' | ||
- '.eslintrc.*' | ||
- '.eslintignore' | ||
- '**.js' | ||
- '**.ts' | ||
- '**.vue' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint: | ||
permissions: | ||
contents: none | ||
|
||
runs-on: ubuntu-latest | ||
|
||
name: eslint | ||
|
||
steps: | ||
- run: 'echo "No eslint required"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,31 @@ | |
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
# | ||
# Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
|
||
name: Lint | ||
|
||
on: pull_request | ||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/**' | ||
- 'src/**' | ||
- 'appinfo/info.xml' | ||
- 'package.json' | ||
- 'package-lock.json' | ||
- 'tsconfig.json' | ||
- '.eslintrc.*' | ||
- '.eslintignore' | ||
- '**.js' | ||
- '**.ts' | ||
- '**.vue' | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
concurrency: | ||
group: lint-eslint-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
@@ -22,17 +38,17 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2 | ||
id: versions | ||
with: | ||
fallbackNode: '^12' | ||
fallbackNpm: '^6' | ||
fallbackNode: '^16' | ||
fallbackNpm: '^7' | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ on: pull_request | |
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
concurrency: | ||
group: lint-stylelint-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
|
@@ -22,17 +22,17 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/[email protected] | ||
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2 | ||
id: versions | ||
with: | ||
fallbackNode: '^12' | ||
fallbackNpm: '^6' | ||
fallbackNode: '^16' | ||
fallbackNpm: '^7' | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
|
Oops, something went wrong.