Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add basic CI setup #25

Merged
merged 1 commit into from
Oct 15, 2022
Merged
Show file tree
Hide file tree
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
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test

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

jobs:

build_test_main:
name: Build and test (main repository)
runs_on: ${{ matrix.os }}
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Build
run: bazelisk build //...

- name: Test
run: bazelisk test //...

build_test_test:
name: Build and test (test repository)
runs_on: ${{ matrix.os }}
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Build
working-directory: test
run: bazelisk build //...

- name: Test
working-directory: test
run: bazelisk test //...
9 changes: 9 additions & 0 deletions test/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,13 @@ jvm_maven_import_external(
server_urls = ["https://repo.maven.apache.org/maven2"],
)

jvm_maven_import_external(
name = "org_twitter4j_twitter4j_core",
artifact = "org.twitter4j:twitter4j-core:4.0.7",
artifact_sha256 = "f3d28049f1c13752c2ea71397fdcda8d9723cf315e7101502997fddfe9aad66d",
server_urls = ["https://repo.maven.apache.org/maven2"],
)

jar_jar_repositories()

register_toolchains("//jar_jar_aspect:jar_jar_toolchain")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 0 additions & 24 deletions test_aspect/WORKSPACE

This file was deleted.