I'm using Atlas 🚀 #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Setup Atlas | |
run-name: I'm using Atlas 🚀 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test-versions: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Latest Atlas | |
uses: ./ | |
- name: Get Atlas Version | |
id: atlas-version | |
shell: bash | |
run: | | |
VERSION=$(atlas version | awk '{print $3}') | |
echo "version=$VERSION" >> $GITHUB_OUTPUT | |
- name: Install Specific Version | |
uses: ./ | |
with: | |
version: ${{ steps.atlas-version.outputs.version }} | |
- name: Verify Version | |
shell: bash | |
run: | | |
INSTALLED_VERSION=$(atlas version | awk '{print $3}') | |
if [ "$INSTALLED_VERSION" != "${{ steps.atlas-version.outputs.version }}" ]; then | |
echo "Version mismatch: expected ${{ steps.atlas-version.outputs.version }}, got $INSTALLED_VERSION" | |
exit 1 |