Skip to content

Commit

Permalink
tests: download atlas
Browse files Browse the repository at this point in the history
  • Loading branch information
luantranminh committed Aug 9, 2024
1 parent 88e9617 commit 4f6f658
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
path: "./artifacts"

test-tool:
name: Test Tool (${{ matrix.os }})
name: Test tool on ${{ matrix.os }} - ${{ matrix.dialect }}
needs: build
strategy:
matrix:
Expand Down Expand Up @@ -84,8 +84,19 @@ jobs:
shell: pwsh
working-directory: ./src/Atlas.Provider.Demo
run: dotnet atlas-ef -- sqlserver
- name: Check migrations for ${{ matrix.dialect }}
- name: Add current directory to PATH
shell: pwsh
if: startsWith(runner.os, 'Windows')
run: echo "::add-path::$GITHUB_WORKSPACE"
- name: Install Atlas CLI (Windows)
shell: pwsh
if: startsWith(runner.os, 'Windows')
run: iwr -useb https://release.ariga.io/atlas/atlas-windows-amd64-latest.exe -OutFile atlas.exe
- name: Install Atlas CLI (Ubuntu / MacOS)
shell: pwsh
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
run: curl -sSf 'https://atlasgo.sh?test=1' | sh
- name: Check migrations for ${{ matrix.dialect }}
working-directory: ./src/Atlas.Provider.Demo
run: |
atlas migrate diff --env ef --var dialect=${{ matrix.dialect }}
Expand All @@ -102,7 +113,7 @@ jobs:
fi
test:
name: Test (${{ matrix.os }})
name: Unit tests on ${{ matrix.os }}
needs: build
strategy:
matrix:
Expand Down

0 comments on commit 4f6f658

Please sign in to comment.