Skip to content
Open
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
24 changes: 16 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ concurrency:
group: ${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

permissions:
contents: read

defaults:
run:
shell: bash
Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:

- name: install dependencies
working-directory: ./app
run: yarn
run: yarn install --frozen-lockfile

- name: lint code
working-directory: ./app
Expand Down Expand Up @@ -153,7 +156,7 @@ jobs:

- name: install dependencies
working-directory: ./app
run: yarn
run: yarn install --frozen-lockfile

- name: run check
run: make rpc-js-compile && make protos-check
Expand Down Expand Up @@ -183,15 +186,20 @@ jobs:
go-version: '${{ env.GO_VERSION }}'

- name: fetch and rebase on ${{ github.base_ref }}
env:
BASE_REF: ${{ github.base_ref }}
REPOSITORY: ${{ github.repository }}
run: |
git remote add upstream https://github.com/${{ github.repository }}
git remote add upstream "https://github.com/${REPOSITORY}"
git fetch upstream
export GIT_COMMITTER_EMAIL="litd-ci@example.com"
export GIT_COMMITTER_NAME="LiT CI"
git rebase upstream/${{ github.base_ref }}
git rebase "upstream/${BASE_REF}"

- name: check commits
run: scripts/check-each-commit.sh upstream/${{ github.base_ref }}
env:
BASE_REF: ${{ github.base_ref }}
run: scripts/check-each-commit.sh "upstream/${BASE_REF}"

#######################
# sql model generation
Expand All @@ -201,15 +209,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: git checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: setup go ${{ env.GO_VERSION }}
uses: ./.github/actions/setup-go
with:
go-version: '${{ env.GO_VERSION }}'

- name: docker image cache
uses: jpribyl/action-docker-layer-caching@v0.1.1
uses: jpribyl/action-docker-layer-caching@c632825d12ec837065f49726ea27ddd40bcc7894 # v0.1.1
continue-on-error: true

- name: Generate sql models
Expand Down Expand Up @@ -329,7 +337,7 @@ jobs:

- name: install dependencies
working-directory: ./app
run: yarn
run: yarn install --frozen-lockfile

- name: run itest ${{ matrix.name }}
run: make ${{ matrix.args }}
Expand Down
Loading