-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (36 loc) · 1.05 KB
/
build.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
name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install swift
uses: YOCKOW/Action-setup-swift@v1
with:
swift-version: '5.3.3'
- shell: bash
env:
MAILTRAPUSER: ${{ secrets.MAILTRAPUSER }}
run: |
sed -i -e 's/#MAILTRAPUSER#/'"$MAILTRAPUSER"'/g' Tests/SmtpTests/SmtpTests.swift
- shell: bash
env:
MAILTRAPPASS: ${{ secrets.MAILTRAPPASS }}
run: |
sed -i -e 's/#MAILTRAPPASS#/'"$MAILTRAPPASS"'/g' Tests/SmtpTests/SmtpTests.swift
- shell: bash
env:
GMAILUSER: ${{ secrets.GMAILUSER }}
run: |
sed -i -e 's/#GMAILUSER#/'"$GMAILUSER"'/g' Tests/SmtpTests/SmtpTests.swift
- shell: bash
env:
GMAILPASS: ${{ secrets.GMAILPASS }}
run: |
sed -i -e 's/#GMAILPASS#/'"$GMAILPASS"'/g' Tests/SmtpTests/SmtpTests.swift
- name: Build
run: swift build --enable-test-discovery
# - name: Tests
# run: swift test --enable-test-discovery