chore(license): share code under the mit license (#353) #217
This file contains 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
# This workflow runs a `deno check` against slack sample apps | |
name: Samples Integration Type-checking | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
samples: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
sample: | |
- slack-samples/deno-issue-submission | |
- slack-samples/deno-starter-template | |
- slack-samples/deno-blank-template | |
- slack-samples/deno-message-translator | |
- slack-samples/deno-request-time-off | |
- slack-samples/deno-simple-survey | |
steps: | |
- name: Setup Deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.x | |
- name: Checkout the sdk | |
uses: actions/checkout@v4 | |
with: | |
path: ./deno-slack-sdk | |
- name: Checkout the ${{ matrix.sample }} sample | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ matrix.sample }} | |
path: ./sample | |
- name: Set imports.deno-slack-sdk/ to ../deno-slack-sdk/src/ in import_map.json | |
run: > | |
deno run | |
--allow-read --allow-write | |
deno-slack-sdk/scripts/import_map/update.ts | |
--import-map "./sample/import_map.json" | |
--sdk "../deno-slack-sdk/src/" | |
- name: Deno check **/*.ts | |
working-directory: ./sample | |
run: find . -type f -regex ".*\.ts" | xargs deno check -r |