forked from smbcloudXYZ/smbcloud-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (24 loc) · 852 Bytes
/
ci.yml
File metadata and controls
30 lines (24 loc) · 852 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
name: Tests
# This workflow run tests for each push
on: push
env:
SMB_CLIENT_ID: ${{ secrets.SMB_CLIENT_ID }}
SMB_CLIENT_SECRET: ${{ secrets.SMB_CLIENT_SECRET }}
SMB_API_HOST: ${{ secrets.SMB_API_HOST }}
SMB_API_PROTOCOL: ${{ secrets.SMB_API_PROTOCOL }}
GH_OAUTH_CLIENT_ID: ${{ secrets.GH_OAUTH_CLIENT_ID }}
GH_OAUTH_CLIENT_SECRET: ${{ secrets.GH_OAUTH_CLIENT_SECRET }}
GH_OAUTH_REDIRECT_HOST: ${{ secrets.GH_OAUTH_REDIRECT_HOST }}
GH_OAUTH_REDIRECT_PORT: ${{ secrets.GH_OAUTH_REDIRECT_PORT }}
jobs:
test_branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: Create .env file
run: |
touch .env
echo CLI_CLIENT_SECRET=${{ secrets.CLI_CLIENT_SECRET }} >> .env
cat .env
- run: cargo test --all-features