chore(main): release typescript 3.16.0 #670
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Currently this does not contain any tests, only a license check | |
| # Once we add tests, we should add a step here to run them | |
| name: Run CLI Tests | |
| on: | |
| push: | |
| paths: | |
| - .github/workflows/test-cli.yml | |
| - openapi-generator/cli_lang.yaml | |
| - 'clients/cli/**' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v2 | |
| with: | |
| go-version: '1.24.4' | |
| - name: Generate CLI and run unit tests | |
| env: | |
| GOPRIVATE: github.com/phrase/phrase-go | |
| run: | | |
| npm install | |
| npm run generate.go | |
| cd ./clients/cli | |
| go mod edit -replace github.com/phrase/phrase-go/v4=../go | |
| npm run generate.cli | |
| go build . | |
| go test -v ./... | |
| - name: Install Ruby and rspec | |
| uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| working-directory: ./clients/cli | |
| - name: Run integration tests | |
| run: | | |
| cd ./clients/cli | |
| bundle exec rspec | |
| - name: License check | |
| uses: phrase/actions/lawa-ci@v1 | |
| with: | |
| github-token: ${{ secrets.GH_LAWA_ACCESS_TOKEN }} | |
| decisions-file: .license-decisions.yml | |
| working-directory: clients/cli | |
| package-managers: gomodules |