Skip to content

Update format check. #62

Update format check.

Update format check. #62

name: Regression Test
on:
push:
branches:
- dev
- master
- demos
- final
jobs:
code-format-check:
name: Code Format Check
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
container:
image: columbiasld/esp:ubuntu18-small
credentials:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install vsg
run: |
pip3 install vsg
echo 'export PATH="$PATH:/home/espuser/.local/bin/"' >> ~/.bashrc
- name: Install clang-format-10
run: |
sudo apt-get update
sudo apt-get install -y clang-format-10
- name: Install autopep8
run: |
pip3 install autopep8
- name: Install Verible
run: |
wget https://github.com/chipsalliance/verible/releases/download/v0.0-3545-ge4028f19/verible-v0.0-3545-ge4028f19-linux-static-x86_64.tar.gz
tar -xvf verible-v0.0-3545-ge4028f19-linux-static-x86_64.tar.gz
rm verible-v0.0-3545-ge4028f19-linux-static-x86_64.tar.gz
mv verible-v0.0-3545-ge4028f19/ verible
export PATH=$PATH:/home/espuser/verible/bin
echo 'export PATH="$PATH:/home/espuser/verible/bin"' >> ~/.bashrc
- name: Source .bashrc
run: |
. ~/.bashrc
- name: Run code formatting check
run: |
cd utils
pwd