Skip to content

refactor(ci): macOS support and more fixes #32

refactor(ci): macOS support and more fixes

refactor(ci): macOS support and more fixes #32

Workflow file for this run

on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- ready_for_review
env:
DENO_VERSION: "1.38.2"
jobs:
changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: actions/checkout@v4
test-pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: pre-commit/[email protected]
test-e2e:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
include:
- runs-on: ubuntu-latest
e2eType: "docker"
- os: macos-latest
e2eType: "local"
# - os: windows-latest
# e2eType: "local"
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- if: "${{ matrix.e2eType == 'docker' }}"
uses: docker/setup-buildx-action@v3
- if: "${{ matrix.e2eType == 'docker' }}"
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
- run: deno task test
test-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ env.DENO_VERSION }}
- uses: ./
id: ghjk-action
env:
GHJK_CONFIG: ./examples/protoc/ghjk.ts
- shell: bash
run: |
cd examples/protoc
. $BASH_ENV
protoc --version