Skip to content

Commit

Permalink
adding back actions
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDuPont committed Mar 28, 2024
1 parent 5f1296b commit f7b86c6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# GitHub Workflows

Use `act` for testing workflows locally: https://nektosact.com/introduction.html
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
pull_request:
branches: [main]
workflow_dispatch:

concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
bazelrc: |
build --color=yes
build --show_timestamps
- name: Format Repository
run: bazel run //:format

0 comments on commit f7b86c6

Please sign in to comment.