Skip to content

Commit

Permalink
testing updates (#88)
Browse files Browse the repository at this point in the history
* drop ubuntu test

* add issues?

* target pr?

* .

* different permissions

* add statuses?

* checks not statuses
  • Loading branch information
dacbd authored May 4, 2023
1 parent f3d2a21 commit e0de64f
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ on:
schedule:
- cron: 0 0 * * *
pull_request:

permissions:
contents: write
pull-requests: write
checks: write

jobs:
verify:
runs-on: ubuntu-latest
Expand All @@ -22,29 +28,9 @@ jobs:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- system: ubuntu-18.04
container: ubuntu:18.04
runs-on: ${{ matrix.system }}
container: ${{ matrix.container }}
steps:
- name: install deps
if: matrix.container == 'ubuntu:18.04'
run: |
apt update
apt install -y software-properties-common
add-apt-repository ppa:git-core/ppa
apt update
apt install -y git fontconfig make gcc pkg-config
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
if:
matrix.container == 'ubuntu:18.04' || matrix.system ==
'windows-latest'
with:
node-version: '16'

- uses: actions/checkout@v3
- run: npm ci
- run: npm run lint
- run: npm run test
Expand Down Expand Up @@ -78,5 +64,5 @@ jobs:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo 'Hello CML from ${{ matrix.system }}!' > report.md
cml comment create report.md
cml comment create ${{ github.event_name == 'pull_request' && '--target=pr' }} report.md
cml check create report.md

0 comments on commit e0de64f

Please sign in to comment.