From a64312e70a4697eda428a99f0891a55de28ce027 Mon Sep 17 00:00:00 2001 From: Youjung Kim <126618609+ykim-1@users.noreply.github.com> Date: Tue, 5 Mar 2024 15:23:27 -0800 Subject: [PATCH] workflow change: Separate lint from test workflow (#463) * remove old scripts and add submodule for upload scripts * separate lint from test.yml * fix test.yml * update gitmodules * remove old git submodule --- .github/workflows/pull_request.yml | 23 +++++++++++++++++++++++ .github/workflows/test.yml | 12 ------------ tod_scripts | 2 +- 3 files changed, 24 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 000000000..4d052c079 --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,23 @@ +name: Pull Request +on: pull_request +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: 'stable' + - run: go version + + - name: Run tidy + run: make tidy + + - name: Run fmt + run: go fmt ./... + + - name: Run linter + run: make lint + + - name: Fail if changes + run: git diff-index --exit-code HEAD diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 092dbe7bc..7e547a0bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,18 +25,6 @@ jobs: go-version: 'stable' - run: go version - - name: Run tidy - run: make tidy - - - name: Run fmt - run: go fmt ./... - - - name: Fail if changes - run: git diff-index --exit-code HEAD - - - name: Run linter - run: make lint - - name: Update system packages run: sudo apt-get update -y diff --git a/tod_scripts b/tod_scripts index eec4b9955..0bb98b047 160000 --- a/tod_scripts +++ b/tod_scripts @@ -1 +1 @@ -Subproject commit eec4b99557cef6f40e8b5b7de00357dc49fb041c +Subproject commit 0bb98b0477a92583efe27507d49ac8babac10476