diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..feb9f45 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-node@v6 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Type check + run: npm run typecheck + + - name: Run tests + run: npm test + + - name: Build + run: npm run build diff --git a/.github/workflows/update-iam-data.yml b/.github/workflows/update-iam-data.yml index 8e61a06..e0d1e35 100644 --- a/.github/workflows/update-iam-data.yml +++ b/.github/workflows/update-iam-data.yml @@ -13,11 +13,11 @@ jobs: update: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: fetch-depth: 0 # Need full history for tags - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: '20' diff --git a/package.json b/package.json index dfb8f15..6547842 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "expand-iam-wildcards-action", "version": "1.0.0", + "packageManager": "npm@10.8.0", "description": "GitHub Action to expand IAM wildcard actions in PR comments", "type": "module", "main": "dist/index.js",