Skip to content

fix ci

fix ci #129

name: Auto Commit Build Artifact
permissions:
contents: write
packages: write
on:
push:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test on deno and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
strategy:
matrix:
os: [
#
ubuntu-latest,
# windows-latest,
# macOS-latest,
]
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v1
- name: Run test
run: deno task test-cov
- name: Run build
run: deno task build:deno
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
files: coverage/lcov.info
fail-on-error: false
- uses: EndBug/add-and-commit@v9 # You can change this to use a specific version.
with:
add: "dist"
# Whether to push the commit and, if any, its tags to the repo. It can also be used to set the git push arguments (see the paragraph below for more info)
# Default: true
push: true
default_author: github_actions
committer_name: GitHub Actions
committer_email: [email protected]
message: "🚨 Commit Build Artifact from GitHub Actions"