Skip to content

test with vcpkg tag 2023.12.12 at commit id c8696863d371ab7f46e213d8f… #1057

test with vcpkg tag 2023.12.12 at commit id c8696863d371ab7f46e213d8f…

test with vcpkg tag 2023.12.12 at commit id c8696863d371ab7f46e213d8f… #1057

Workflow file for this run

name: 'build-test'
on: [pull_request, push]
jobs:
build_and_unit_test:
name: '${{ matrix.os }}: build and unit tests'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: '20.x'
# How to consume GitHub packages, from this message (!): https://github.community/t/download-from-github-package-registry-without-authentication/14407/35
# Inspired from here: https://github.com/jcansdale-test/npmrc-configurations/blob/master/.github/workflows/blank.yml
- name: Authenticate to GitHub Packages
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
echo "@${{ github.repository_owner }}:registry=https://npm.pkg.github.com/" >> ~/.npmrc
- run: |
npm install
npm run test
name: build and test
shell: bash
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true # Disable just on v7 branch since it is sometime failing.
tests:
name: '${{ matrix.os }}: functional tests'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: checkout this action
uses: actions/checkout@v3
with:
submodules: true
- name: basic test for run-vcpkg
uses: ./
with:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: sqlite3
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00'
useShell: true
- name: basic test for run-vcpkg with setupOnly
uses: ./
with:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: sqlite3
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00'
useShell: true
setupOnly: true
- name: overlay extraction test for run-vcpkg
uses: ./
with:
vcpkgDirectory: ${{ github.workspace }}/vcpkg
vcpkgArguments: '--overlay-ports=../__tests__/assets/1 sqlite3 @../__tests__/assets/tempDirectory/response_file1 --overlay-ports=../__tests__/assets/subdir/2 @../__tests__/assets/response_file2'
vcpkgGitUrl: 'https://github.com/microsoft/vcpkg.git'
vcpkgGitCommitId: 'c8696863d371ab7f46e213d8f5ca923c4aef2a00'
useShell: true