Set up your GitHub Actions workflow with a specific version of the .NET core sdk
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Danny McCormick 1566687aab
Update README.md
6 years ago
.github Update workflow.yml (#7) 6 years ago
__tests__ Longer timeout 6 years ago
docs Initial commit 6 years ago
externals Add installer (#1) 6 years ago
lib Fix fallback urls (#6) 6 years ago
node_modules Update toolkit version (#3) 6 years ago
src Fix fallback urls (#6) 6 years ago
toolkit Update toolkit version (#3) 6 years ago
.gitignore Initial commit 6 years ago
.prettierrc.json Initial commit 6 years ago
LICENSE Initial commit 6 years ago
README.md Update README.md 6 years ago
action.yml Update action.yml 6 years ago
jest.config.js Initial commit 6 years ago
package-lock.json Update toolkit version (#3) 6 years ago
package.json Fix husky 6 years ago
tsconfig.json Initial commit 6 years ago

README.md

setup-dotnet

This action sets up a dotnet environment for use in actions by:

  • optionally downloading and caching a version of dotnet by version and adding to PATH
  • registering problem matchers for error output

Usage

See action.yml

Basic:

actions:
- uses: actions/checkout@master
- uses: actions/setup-dotnet@master
  with:
    version: 2.2.103 // Version to use.
- run: dotnet build <my project>

Matrix Testing:

jobs:
  build:
    strategy:
      matrix:
        dotnet: [ 2.2.103, 3.5.2, 4.5.1 ]
    name: Dotnet ${{ matrix.dotnet }} sample
    actions:
      - uses: actions/checkout@master
      - name: Setup dotnet
        uses: actions/setup-dotnet@master
        with:
          version: ${{ matrix.dotnet }}
      - run: dotnet build <my project>

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See Contributor's Guide