Skip to content

fix(deps): update module github.com/rhysd/actionlint to v1.7.2 #93

fix(deps): update module github.com/rhysd/actionlint to v1.7.2

fix(deps): update module github.com/rhysd/actionlint to v1.7.2 #93

Workflow file for this run

name: CI
on: push
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup TinyGo
uses: ./.github/actions/setup-tinygo
with:
version: fce42fc7fa22f9a8061ef8700e2d17a6082f782e # latest commit on dev at the time of writing
- name: Setup Node
uses: actions/setup-node@v3
- name: Install dependencies
run: yarn install
- name: Build
run: make build
- name: Test
run: yarn test
- name: Integration test
run: |
dir=$(pwd)
tmp=$(mktemp -d)
yarn pack
cd "$tmp" || exit 1
yarn init -y
yarn add "$dir/actionlint-v0.0.0.tgz" typescript @types/node
# verify package exports
ls -la "node_modules/actionlint/$(jq ".exports.types" -r node_modules/actionlint/package.json)"
ls -la "node_modules/actionlint/$(jq ".exports.node.import" -r node_modules/actionlint/package.json)"
ls -la "node_modules/actionlint/$(jq ".exports.node.require" -r node_modules/actionlint/package.json)"
ls -la "node_modules/actionlint/$(jq ".exports.browser" -r node_modules/actionlint/package.json)"
cat << EOF > test.mjs
import { createLinter } from 'actionlint';
createLinter().then(lint => {
const results = lint('on: psuh', 'push.yml');
process.exit(results.length > 0 ? 0 : 1)
}, (err) => { console.error(err); process.exit(1); });
EOF
# test that the linter works
node test.mjs
# test that the types are correctly included
mv test.mjs test.ts
yarn tsc --noEmit --strict ./test.ts
- name: release
if: github.ref == 'refs/heads/main'
run: npx --yes semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}