Skip to content

dotfiles CI

dotfiles CI #274

Workflow file for this run

name: dotfiles CI
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
schedule:
- cron: '0 3 * * 6'
jobs:
build-docker:
name: Install in Docker
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Build Docker image
run: docker build . -t dotfiles
- name: Run Dockerfile
run: docker run dotfiles
build:
name: Install locally
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Remove existing awscli
run: |
rm /usr/local/bin/2to3
rm /usr/local/bin/aws
rm /usr/local/bin/aws_completer
if: ${{ startsWith(matrix.os, 'macos') }}
- name: Unlink preinstalled node
run: brew unlink node@16
if: ${{ startsWith(matrix.os, 'macos') }}
- name: Checkout repo
uses: actions/checkout@v2
- name: Run install command
run: ./install.sh
- name: Ensure zsh works
run: if [[ -n $(HOME=$GITHUB_WORKSPACE zsh -c return) ]]; then exit 1; fi