Skip to content

fix: install yarn via npm instead of corepack for incompatible tsserver #32

fix: install yarn via npm instead of corepack for incompatible tsserver

fix: install yarn via npm instead of corepack for incompatible tsserver #32

Workflow file for this run

name: docker
on:
push:
branches: main
pull_request:
jobs:
docker-buildx:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# test with nonstandard uid and gid
build-args:
- |
UID=1234
GID=1235
- |
UID=1000
GID=1000
- ''
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Build and load
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
build-args: ${{ matrix.build-args }}
load: true
tags: l7/nvim:latest
# could enable push to gh registry
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
test-make:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
cmd:
- ''
- docker
- podman
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: make IMAGE_NAME=localhost/foo IMAGE_TAG=bar CMD=${{ matrix.cmd }}
if: ${{ matrix.cmd != '' }}
env:
CMD: ${{ matrix.cmd }}
- run: make IMAGE_NAME=localhost/foo IMAGE_TAG=bar
if: ${{ matrix.cmd == '' }}
- run: ${{ matrix.cmd }} image inspect localhost/foo:bar
if: ${{ matrix.cmd != '' }}
- run: podman image inspect localhost/foo:bar
if: ${{ matrix.cmd == '' }}
- run: make test