Skip to content

Update CI

Update CI #47

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
ci-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-13]
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
test-bot: false
- name: Cache Homebrew Gems
id: cache
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ matrix.os }}-rubygems-
- name: Install Homebrew Gems
id: gems
run: brew install-bundler-gems
if: steps.cache.outputs.cache-hit != 'true'
- name: Trader workstation (stable)
run: |
brew style --cask ./Casks/trader-workstation-stable.rb
brew audit --cask --strict ./Casks/trader-workstation-stable.rb
brew install --cask ./Casks/trader-workstation-stable.rb
brew uninstall --cask ./Casks/trader-workstation-stable.rb
- name: Trader workstation (latest)
run: |
brew style --cask ./Casks/trader-workstation-latest.rb
brew audit --cask --strict ./Casks/trader-workstation-latest.rb
brew install --cask ./Casks/trader-workstation-latest.rb
brew uninstall --cask ./Casks/trader-workstation-latest.rb
- name: Trader workstation (beta)
run: |
brew style --cask ./Casks/trader-workstation-beta.rb
brew audit --cask --strict ./Casks/trader-workstation-beta.rb
brew install --cask ./Casks/trader-workstation-beta.rb
brew uninstall --cask ./Casks/trader-workstation-beta.rb