Skip to content

Merge pull request #180 from Snapchat/lf/move-only-promise #398

Merge pull request #180 from Snapchat/lf/move-only-promise

Merge pull request #180 from Snapchat/lf/move-only-promise #398

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request: {}
jobs:
build:
name: Build and Test
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache bazel build results
uses: actions/cache@v2
env:
cache-name: bazel-cache
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ env.cache-name }}-${{ github.ref }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-main
- name: Build
run: bazel build //src:djinni
- name: Generate examples / check clean output
run: ./ci/generate.sh
- name: Test
run: bazel test --test_output=all //test-suite:djinni-java-tests //test-suite:djinni-objc-tests
- name: External Test
working-directory: external-test
run: bazel run @djinni//src:djinni -- --help