Skip to content

Release process

Release process #653

Workflow file for this run

name: Lucky CLI Main CI
on:
push:
branches: [main]
pull_request:
branches: "*"
jobs:
specs:
uses: ./.github/workflows/reusable-earthly.yml
with:
earthly-cmd: +gh-action-essential
platform-specs:
needs: specs
strategy:
fail-fast: false
matrix:
include:
- {os: macos-latest}
- {os: windows-latest}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: crystal-lang/install-crystal@v1
- name: Install shards
run: shards install
- name: Run specs
run: crystal spec --tag "~integration"
integration-specs:
needs: specs
uses: ./.github/workflows/reusable-earthly.yml
with:
earthly-cmd: +gh-action-integration
e2e-specs:
needs: integration-specs
uses: ./.github/workflows/reusable-earthly.yml
with:
earthly-cmd: +gh-action-e2e
e2e-security-specs:
needs: integration-specs
if: github.event_name == 'pull_request'
uses: ./.github/workflows/reusable-earthly.yml
with:
earthly-cmd: >-
--secret BRIGHT_TOKEN
--secret BRIGHT_PROJECT_ID
+gh-action-e2e-security
--github_ref=${{github.ref}}
--github_sha=${{github.sha}}
--github_run_id=${{github.run_id}}
secrets:
BRIGHT_TOKEN: ${{ secrets.BRIGHT_API_KEY }}
BRIGHT_PROJECT_ID: ${{ secrets.BRIGHT_PROJECT_ID }}