Skip to content

Add support for declarations in switch expressions #44

Add support for declarations in switch expressions

Add support for declarations in switch expressions #44

name: PR Info
# This workflow builds the whole project once and:
# - comments build deprecations/warnings (highlighting new ones since last tested PR)
on:
pull_request:
branches:
- master
jobs:
pr_info:
name: PR Info
runs-on: ubuntu-latest
steps:
# Compiler to test with
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: Prepare compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-latest
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Checkout old stuff, with new comment script
run: |
git checkout ${{ github.base_ref }}
git checkout ${{ github.sha }} -- ./ci/summary_comment.sh ./ci/summary_comment_diff.sh
# first dump old info
- name: Check pre-PR status
run: ./ci/summary_comment.sh | tee ../OLD_OUTPUT.txt
- name: Checkout PR target
run: |
git checkout ${{ github.sha }}
git clean -fd
git reset --hard
- name: Evaluate PR
run: ./ci/summary_comment.sh | tee ../NEW_OUTPUT.txt
- name: Generate comment
run: ./ci/summary_comment_diff.sh ../OLD_OUTPUT.txt ../NEW_OUTPUT.txt | tee comment.txt
- name: Prepare comment for upload
run: |
mkdir -p ./pr
mv comment.txt pr
echo ${{ github.event.number }} > ./pr/NR
- name: upload comment to high-trust action making the comment
uses: actions/upload-artifact@v2
with:
name: pr
path: pr/