-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from viperproject/locate-java
Improved Java Home Detection
- Loading branch information
Showing
29 changed files
with
2,824 additions
and
3,345 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: npm | ||
directory: "/client" | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: npm | ||
directory: "/server" | ||
schedule: | ||
interval: monthly |
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,46 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
# | ||
# Copyright (c) 2011-2021 ETH Zurich. | ||
|
||
name: Update VS Code | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
# At 07:00 UTC on day-of-month 1 and 15. Use https://crontab.guru/ to edit this. | ||
- cron: '0 7 1,15 * *' | ||
|
||
jobs: | ||
# Update the version of rustc, open a PR and assign a developer. | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Update VS Code version used by the tests | ||
run: | | ||
TEST_VSCODE_VERSION="$(cat client/src/test/data/vscode-version)" | ||
echo "The current version of VS Code used in tests is $TEST_VSCODE_VERSION" | ||
LATEST_VSCODE_VERSION="$( | ||
curl -s https://api.github.com/repos/microsoft/vscode/releases/latest | jq -r '.tag_name' | ||
)" | ||
echo "The latest version of VS Code is $LATEST_VSCODE_VERSION" | ||
echo "$LATEST_VSCODE_VERSION" > client/src/test/data/vscode-version | ||
echo "TEST_VSCODE_VERSION=$TEST_VSCODE_VERSION" >> $GITHUB_ENV | ||
echo "LATEST_VSCODE_VERSION=$LATEST_VSCODE_VERSION" >> $GITHUB_ENV | ||
- name: Open a pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
if: env.TEST_VSCODE_VERSION != env.LATEST_VSCODE_VERSION | ||
with: | ||
# Use viper-admin's token to workaround a restriction of GitHub. | ||
# See: https://github.com/peter-evans/create-pull-request/issues/48 | ||
token: ${{ secrets.VIPER_ADMIN_TOKEN }} | ||
commit-message: Update VS Code to ${{ env.LATEST_VSCODE_VERSION }} | ||
title: Update VS Code to ${{ env.LATEST_VSCODE_VERSION }} | ||
branch: auto-update-vscode | ||
delete-branch: true | ||
body: | | ||
* Update VS Code version used in tests to `${{ env.LATEST_VSCODE_VERSION }}`. |
Oops, something went wrong.