Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix set-env command that is no longer supported #95

Merged
merged 2 commits into from
Dec 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v1
- name: Configure
shell: cmd
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ../
Expand Down Expand Up @@ -135,7 +133,7 @@ jobs:
chmod +x clients/vscode-hlasmplugin/bin/darwin/language_server
chmod +x clients/vscode-hlasmplugin/bin/linux/language_server
- name: Extract branch name
run: echo ::set-env name=BRANCH::${GITHUB_REF#refs/heads/}
run: echo BRANCH=${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
- name: Update version
if: env.BRANCH == 'master' || startsWith(env.BRANCH, 'release')
run: cd clients/vscode-hlasmplugin && npm ci && npx semantic-release --dry-run
Expand All @@ -144,9 +142,9 @@ jobs:
- name: Package VSIX
run: cd clients/vscode-hlasmplugin/ && npm ci && npm run package
- name: Get VSIX filename
run: echo ::set-env name=VSIX_FILENAME::$(ls clients/vscode-hlasmplugin/*.vsix)
run: echo VSIX_FILENAME=$(ls clients/vscode-hlasmplugin/*.vsix) >> $GITHUB_ENV
- name: Get version
run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")
run: echo VERSION=$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)") >> $GITHUB_ENV
- name: Upload VSIX
uses: actions/upload-artifact@v1
with:
Expand All @@ -166,7 +164,7 @@ jobs:
apk update
apk add --no-cache linux-headers git g++ cmake util-linux-dev npm ninja pkgconfig openjdk8 maven
- name: Extract branch name
run: echo ::set-env name=BRANCH::${GITHUB_REF#refs/heads/}
run: echo BRANCH=${GITHUB_REF#refs/heads/} >> $GITHUB_ENV
- name: Update version
if: env.BRANCH == 'master' || startsWith(env.BRANCH, 'release')
run: cd clients/vscode-hlasmplugin && npm ci && npx semantic-release --dry-run
Expand All @@ -179,9 +177,9 @@ jobs:
- name: Server Test
run: cd build/bin && ./server_test && ./library_test
- name: Get VSIX filename
run: echo ::set-env name=VSIX_FILENAME::$(ls build/bin/*.vsix)
run: echo VSIX_FILENAME=$(ls build/bin/*.vsix) >> $GITHUB_ENV
- name: Get version
run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")
run: echo VERSION=$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)") >> $GITHUB_ENV
- name: Rename VSIX
run: mv ${{ env.VSIX_FILENAME }} hlasm-language-support-${{ env.VERSION }}-alpine.vsix
- name: Upload VSIX
Expand All @@ -203,7 +201,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get new version
run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")
run: echo VERSION=$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)") >> $GITHUB_ENV
- name: Download VSIX
uses: actions/download-artifact@v1
with:
Expand Down Expand Up @@ -280,7 +278,7 @@ jobs:
- name: Install Chromium
run: apk add --no-cache chromium
- name: Get version
run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")
run: echo VERSION=$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)") >> $GITHUB_ENV
- name: Download VSIX
uses: actions/download-artifact@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/Sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Get version
run: echo ::set-env name=VERSION::$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")
run: echo "VERSION=$(node -e "console.log(require('./clients/vscode-hlasmplugin/package.json').version)")" >> $GITHUB_ENV
- name: Requirements install
run: sudo apt-get update && sudo apt-get install uuid-dev ninja-build libc++-8-dev libc++abi-8-dev
- name: Configure
Expand Down Expand Up @@ -67,8 +67,8 @@ jobs:
- name: Pull request setting
if: github.event_name == 'pull_request'
run: |
echo ::set-env name=PR_NUMBER::-Dsonar.pullrequest.key=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
echo ::set-env name=HEAD_BRANCH::-Dsonar.pullrequest.branch=${{ github.head_ref }}
echo PR_NUMBER=-Dsonar.pullrequest.key=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") >> $GITHUB_ENV
echo HEAD_BRANCH=-Dsonar.pullrequest.branch=${{ github.head_ref }} >> $GITHUB_ENV
- name: Sonar scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down