Skip to content

Commit

Permalink
ci: linux tests and cache linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Jan 17, 2025
1 parent b63bd61 commit bf75703
Showing 1 changed file with 8 additions and 27 deletions.
35 changes: 8 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,21 @@ jobs:
if: matrix.skip_release != '1'
run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Release PLATFORM="${{ matrix.platform }}" xcodebuild

integration-tests:
linux:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- run: supabase start
working-directory: ./Tests/IntegrationTests
- name: Run tests
run: swift test --filter IntegrationTests
run: swift test
env:
SUPABASE_URL: http://localhost:54321
SUPABASE_ANON_KEY: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
Expand All @@ -130,30 +135,6 @@ jobs:
run: supabase stop
working-directory: ./Tests/IntegrationTests

# linux:
# name: linux
# strategy:
# matrix:
# swift-version: ["5.10"]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: swift-actions/setup-swift@v2
# with:
# swift-version: ${{ matrix.swift-version }}
# - name: Cache build
# uses: actions/cache@v3
# with:
# path: |
# .build
# key: |
# build-spm-linux-${{ matrix.swift-version }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift', '**/Package.resolved') }}
# restore-keys: |
# build-spm-linux-${{ matrix.swift-version }}-
# - run: make dot-env
# - name: Run tests
# run: swift test --skip IntegrationTests

# library-evolution:
# name: Library (evolution)
# runs-on: macos-14
Expand Down

0 comments on commit bf75703

Please sign in to comment.