Files
actions-setup-docker-compose/.github/workflows/test.yml
Sergeev Alexander e1d8c7b2f9 fix: version prefix 'v' is missing for docker-compose v2
* System naming for docker-compose >= 2.0 fixed

As you might notice they started naming releases using not capitalized system name starting from `docker-compose` v2.0.0 ([ref](https://github.com/docker/compose/releases/tag/v2.0.0)).
This commit adds version check and fixes system name (returned by `uname -s`).

* Update src/install.ts

Co-authored-by: Kengo TODA <skypencil+github@gmail.com>

* Version

Naming for later versions updated

* Parsing instead of lexicographical order applied

* Update src/install.ts

Co-authored-by: Kengo TODA <skypencil+github@gmail.com>

* Tests for new release naming added

* Integration test for versions  > 2.0.0 added

* Version tag for releases >= 2.0.0 fixed

* Indentation restored

* js files compiled

* auto-appending 'v' added

Co-authored-by: Kengo TODA <skypencil+github@gmail.com>
2022-04-18 11:40:59 +08:00

40 lines
992 B
YAML

name: 'build-test'
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build: # make sure build/ci work properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Make sure the release step uses its own credentials.
persist-credentials: false
- uses: actions/setup-node@v3
with:
cache: npm
node-version-file: '.nvmrc'
- run: |
npm ci
npm run all
- name: Run semantic-release
run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./
with:
version: '1.26.2'
- uses: ./
with:
version: '2.4.1'