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

GSW-2020 build: support tlin in ci #424

Merged
merged 6 commits into from
Dec 10, 2024
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/tlin_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: tlin-check

on:
pull_request:
branches:
- main

jobs:
tlin-check:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: checkout tlin
uses: actions/checkout@v3
with:
repository: gnoverse/tlin
ref: main
path: ./tlin
- name: setup go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: changed directories
id: changed_directories
uses: tj-actions/changed-files@v45
with:
dir_names: "true"
- name: list changed directories
run: |
echo "Changed directories: ${{ steps.changed_directories.outputs.all_changed_files }}"
- name: install tlin
run: |
cd tlin
go install ./cmd/tlin
- name: tlin check
run: |
for directory in ${{ steps.changed_directories.outputs.all_changed_files }}; do
echo "checking $directory ..."
tlin $directory
done
Loading