Skip to content

add taskfile support #51

add taskfile support

add taskfile support #51

Workflow file for this run

name: "Tests"
on:
pull_request:
branches:
- "master"
push:
branches:
- "master"
jobs:
# tests:
# name: "Tests"
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os:
# - "ubuntu-latest"
# - "windows-latest"
# - "macos-latest"
# mongodb-version:
# - "7.0"
# topology:
# - "server"
# - "replica_set"
# - "sharded_cluster"
# auth:
# - "noauth"
# - "auth"
# ssl:
# - "nossl"
# - "ssl"
# steps:
# - name: "Checkout"
# uses: "actions/checkout@v4"
# with:
# fetch-depth: 2
# - id: setup-mongodb
# name: "Test GitHub Action"
# uses: ./
# with:
# version: ${{ matrix.mongodb-version }}
# topology: ${{ matrix.topology }}
# auth: ${{ matrix.auth }}
# ssl: ${{ matrix.ssl }}
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/[email protected]
eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- id: cache-restore
uses: actions/cache@v4
with:
path: ./.evergreen/github_app/node_modules
key: npm-${{ hashFiles('./.evergreen/github_app/package-lock.json') }}
- name: Install dependencies
if: steps.cache-restore.outputs.cache-hit != 'true'
working-directory: .evergreen/github_app
run: npm ci - ignore-scripts
- name: Lint
working-directory: .evergreen/github_app
run: npm run lint
taskfile:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
steps:
- uses: actions/checkout@v4
- name: Install task
run: . ./.evergreen/ensure-binary.sh task
- name: Print task version
run: task --version