diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c053f78..1b41174 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: "CI" +name: "PDFium.js:CI" on: push: diff --git a/.github/workflows/ci_example.yml b/.github/workflows/ci_example.yml new file mode 100644 index 0000000..cafa699 --- /dev/null +++ b/.github/workflows/ci_example.yml @@ -0,0 +1,31 @@ +name: "Example:CI" + +on: + push: + pull_request: + +defaults: + run: + working-directory: example + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache-dependency-path: "yarn.lock" + node-version-file: "../.tool-versions" + - run: yarn install --frozen-lockfile + - run: yarn build + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache-dependency-path: "yarn.lock" + node-version-file: "../.tool-versions" + - run: yarn install --frozen-lockfile + - run: yarn lint