Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
feedmeapples committed Mar 9, 2023
1 parent ce9ca0c commit 2d942a8
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,46 @@ on:
branches: [main]

jobs:
# test:
# strategy:
# fail-fast: true
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Print build information
# run: "echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}"
test:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Print build information
run: "echo head_ref: ${{ github.head_ref }}, ref: ${{ github.ref }}, os: ${{ matrix.os }}"

# - uses: actions/checkout@v3
- uses: actions/checkout@v3

# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version-file: "go.mod"
# check-latest: true
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: "go.mod"
check-latest: true

# - name: Test
# env:
# CGO_ENABLED: 0
# run: go test -v ./...
- name: Test
env:
CGO_ENABLED: 0
run: go test -v ./...

# test-shellcheck:
# name: Shellcheck
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
test-shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# - name: Run ShellCheck
# uses: ludeeus/action-shellcheck@master
# with:
# ignore_paths: ./.devcontainer
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
ignore_paths: ./.devcontainer

test-install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
shell: [sh, bash, fish, zsh]
os: [ubuntu-latest, macos-latest, windows-latest]
shell: [sh, bash, zsh, fish]
runs-on: ${{ matrix.os }}
steps:
- name: Print build information
Expand All @@ -62,8 +62,8 @@ jobs:
if: matrix.os == 'macos-latest' && matrix.shell != 'sh'
run: "brew update && brew install ${{ matrix.shell }}"

- name: Set SHELL to ${{ matrix.shell }}
- name: Update SHELL env variable
run: "env SHELL=$(which ${{ matrix.shell }})"

- name: "Run with ${{ matrix.shell }}"
run: sh -c '${{ matrix.shell }} -c "./install.sh"'
- name: "Run Install Script"
run: "./install.sh"

0 comments on commit 2d942a8

Please sign in to comment.