-
Notifications
You must be signed in to change notification settings - Fork 1.3k
40 lines (37 loc) · 1.23 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Unit + Karma Tests
on: [push]
jobs:
build:
strategy:
matrix:
os: [ubuntu-18.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.3.4
with:
submodules: true
fetch-depth: 110
- uses: saucelabs/sauce-connect-action@v1.1.3
with:
username: ${{ secrets.SAUCE_USERNAME }}
accessKey: ${{ secrets.SAUCE_ACCESS_KEY }}
tunnelIdentifier: github-action-tunnel
- name: Create certs
run: |
echo "${{ secrets.BUILDBUDDY_ORG_CERT }}">buildbuddy-cert.pem
echo "${{ secrets.BUILDBUDDY_ORG_KEY }}">buildbuddy-key.pem
- name: build
run: |
bazel build //... --config=ci --build_metadata=COMMIT_SHA=$(git rev-parse HEAD)
env:
CI: true
- name: test
run: |
bazel test //... --config=ci --build_metadata=COMMIT_SHA=$(git rev-parse HEAD)
env:
CI: true
- name: Karma
run: bazel test --config=ci :karma-ci --action_env=SAUCE_ACCESS_KEY --action_env=SAUCE_USERNAME --action_env=GITHUB_RUN_ID
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}