name: docker-linux

on:
  push:
    branches:
      - "**"

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        dockerfile:
          - Dockerfile.arch
          - Dockerfile.ubuntu
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Build
        run: |
          docker build -t dotfiles -f "${{ matrix.dockerfile }}" .
      - name: Show package versions
        run: |
          docker \
            run \
            --rm \
            dotfiles \
            zsh -c "nvim --version \
              && zsh --version \
              && tmux -V \
              && rg --version \
              && git --version \
              && git --version \
              && \$HOME/.fnm/fnm exec --using=16 node --version \
              && \$HOME/.fnm/fnm exec --using=16 npm list --location=global \
            "

name: docker-linux

on:
  push:
    branches:
      - "**"

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        dockerfile:
          - Dockerfile.arch
          - Dockerfile.ubuntu
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Build
        run: |
          docker build -t dotfiles -f "${{ matrix.dockerfile }}" .
      - name: Show package versions
        run: |
          docker \
            run \
            --rm \
            dotfiles \
            zsh -c "nvim --version \
              && zsh --version \
              && tmux -V \
              && rg --version \
              && git --version \
              && git --version \
              && \$HOME/.fnm/fnm exec --using=18 node --version \
              && \$HOME/.fnm/fnm exec --using=18 npm list --location=global \
            "

Fix node versions in CI
Fix node versions in CI
