Skip to content

build(deps): bump MongoDB.Driver from 2.30.0 to 3.0.0 #159

build(deps): bump MongoDB.Driver from 2.30.0 to 3.0.0

build(deps): bump MongoDB.Driver from 2.30.0 to 3.0.0 #159

Workflow file for this run

name: Build & Test
on:
#push:
# branches:
# - main
pull_request:
branches:
- main
env:
DOTNET_VERSION: "9.0.x"
TZ: Asia/Shanghai
SOLUTION: EasilyNET.sln
ARTIFACTS: ./artifacts
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get the latest tag for push events
if: github.event_name == 'push'
id: get_tag_push
run: echo "EASILYNET_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Get the latest tag for pull request events
if: github.event_name == 'pull_request'
id: get_tag_pr
run: |
TAG=$(git describe --tags --abbrev=0)
echo "EASILYNET_VERSION=$TAG" >> $GITHUB_ENV
- name: Display the latest tag
run: echo $EASILYNET_VERSION
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build and Test
run: ./Test.ps1
shell: pwsh