-
-
Notifications
You must be signed in to change notification settings - Fork 534
39 lines (31 loc) 路 743 Bytes
/
Copy pathtest.yml
File metadata and controls
39 lines (31 loc) 路 743 Bytes
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
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
env:
TESLA_EMAIL: elon.musk@teslamotors.com
TESLA_PASS: oilLOL
TESLA_CLIENT_ID: 1
TESLA_CLIENT_SECRET: 2
TESLA_ACCESS_TOKEN: 3
TESLA_REFRESH_TOKEN: 4
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2']
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Lint code
run: bundle exec standardrb
- name: Run test suite
run: bundle exec rake